interface OfflineAminoSigner {
    getAccounts: (() => Promise<readonly AccountData[]>);
    signAmino: ((signerAddress: string, signDoc: StdSignDoc) => Promise<AminoSignResponse>);
}

Properties

getAccounts: (() => Promise<readonly AccountData[]>)

Get AccountData array from wallet. Rejects if not enabled.

signAmino: ((signerAddress: string, signDoc: StdSignDoc) => 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.

Type declaration

    • (signerAddress, signDoc): Promise<AminoSignResponse>
    • Parameters

      • signerAddress: string

        The address of the account that should sign the transaction

      • signDoc: StdSignDoc

        The content that should be signed

      Returns Promise<AminoSignResponse>