Methods
getAccounts
- getAccounts(): { address: string; algo: string; pubkey: Uint8Array }[]
Returns { address: string; algo: string; pubkey: Uint8Array }[]
sendTransaction
- sendTransaction(transaction: TransactionRequest): Promise<TransactionResponse>
Parameters
transaction: TransactionRequest
Returns Promise<TransactionResponse>
setProvider
- setProvider(provider: Provider): void
sign
- sign(signerAddress: string, signBytes: string | Uint8Array): Signature
Parameters
signerAddress: string
signBytes: string | Uint8Array
Returns Signature
signDirect
- signDirect(signerAddress: string, signDoc: SignDoc): Promise<{ signature: StdSignature; signed: SignDoc }>
Parameters
signerAddress: string
signDoc: SignDoc
Returns Promise<{ signature: StdSignature; signed: SignDoc }>
signMessage
- signMessage(signerAddress: string, message: Uint8Array): Promise<string>
Parameters
signerAddress: string
message: Uint8Array
Returns Promise<string>
signTransaction
- signTransaction(signerAddress: string, transaction: any): Promise<string>
Parameters
signerAddress: string
transaction: any
Returns Promise<string>
Static generateWalletFromMnemonic
Static generateWalletFromPvtKey
Generates a wallet from a mnemonic. Returns an EthWallet object.