Interface: OfflineAminoSigner
@shareledgerjs/amino.OfflineAminoSigner
Properties
getAccounts
• Readonly
getAccounts: () => Promise
<readonly AccountData
[]>
Type declaration
▸ (): Promise
<readonly AccountData
[]>
Get AccountData array from wallet. Rejects if not enabled.
Returns
Promise
<readonly AccountData
[]>
signAmino
• Readonly
signAmino: (signerAddress
: string
, signDoc
: StdSignDoc
) => Promise
<AminoSignResponse
>
Type declaration
▸ (signerAddress
, signDoc
): Promise
<AminoSignResponse
>
Request signature from whichever key corresponds to provided bech32-encoded address. Rejects if not enabled.
The signer implementation may offer the user the ability to override parts of the signDoc. It must return the doc that was signed in the response.
Parameters
Name | Type | Description |
---|---|---|
signerAddress | string | The address of the account that should sign the transaction |
signDoc | StdSignDoc | The content that should be signed |
Returns
Promise
<AminoSignResponse
>