Class CosmosWalletStrategy
Methods
getAddresses
- getAddresses(): Promise<string[]>
Returns Promise<string[]>
getPubKey
- getPubKey(): Promise<string>
isChainIdSupported
Parameters
Returns Promise<boolean>
setWallet
- setWallet(wallet: Wallet): void
signAminoTransaction
- signAminoTransaction(transaction: { address: string; stdSignDoc: StdSignDoc }): Promise<AminoSignResponse>
Parameters
transaction: { address: string; stdSignDoc: StdSignDoc }
address: string
stdSignDoc: StdSignDoc
Returns Promise<AminoSignResponse>
signTransaction
- signTransaction(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