Methods
cancelOnAccountChange
- cancelOnAccountChange(): void
cancelOnChainIdChange
- cancelOnChainIdChange(): void
confirm
- confirm(address: string): Promise<string>
Parameters
Returns Promise<string>
disconnectWallet
- disconnectWallet(): Promise<void>
getAddresses
- getAddresses(): Promise<string[]>
Returns Promise<string[]>
getEthereumChainId
- getEthereumChainId(): Promise<string>
getEthereumTransactionReceipt
- getEthereumTransactionReceipt(txHash: string): Promise<void>
Parameters
Returns Promise<void>
getPubKey
- getPubKey(): Promise<string>
sendEthereumTransaction
- sendEthereumTransaction(tx: any, options: { address: string; ethereumChainId: EthereumChainId }): Promise<string>
Parameters
tx: any
options: { address: string; ethereumChainId: EthereumChainId }
address: string
ethereumChainId: EthereumChainId
Returns Promise<string>
sendTransaction
Parameters
options: { address: string; chainId: ChainId; sentryEndpoint?: string }
address: string
chainId: ChainId
Optional sentryEndpoint?: string
setWallet
- setWallet(wallet: Wallet): void
signCosmosTransaction
- signCosmosTransaction(transaction: { accountNumber: number; address: string; chainId: string; txRaw: TxRaw }): Promise<DirectSignResponse>
Parameters
transaction: { accountNumber: number; address: string; chainId: string; txRaw: TxRaw }
accountNumber: number
address: string
chainId: string
signEip712TypedData
- signEip712TypedData(eip712TypedData: string, address: string): Promise<string>
Parameters
eip712TypedData: string
address: string
Returns Promise<string>
signTransaction
- signTransaction(data: string | { accountNumber: number; chainId: string; txRaw: TxRaw }, address: string): Promise<string | DirectSignResponse>
Parameters
data: string | { accountNumber: number; chainId: string; txRaw: TxRaw }
address: string