Interface IMnemonicSigner

interface IMnemonicSigner {
    signAmino: ((signerAddress, signDoc) => Promise<AminoSignResponse>);
    signDirect: ((signerAddress, signDoc) => Promise<DirectSignResponse>);
    getAccounts(): Promise<readonly AccountData[]>;
}

Hierarchy

  • TMergedSigner
    • IMnemonicSigner

Implemented by

Properties

Methods

Properties

signAmino: ((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.

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>

signDirect: ((signerAddress, signDoc) => Promise<DirectSignResponse>)

Type declaration

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

      • signerAddress: string
      • signDoc: SignDoc

      Returns Promise<DirectSignResponse>

Methods