Options
All
  • Public
  • Public/Protected
  • All
Menu

A wallet that holds a single secp256k1 keypair.

If you want to work with BIP39 mnemonics and multiple accounts, use Secp256k1HdWallet.

Hierarchy

  • Secp256k1Wallet

Implements

Index

Methods

  • 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

    Returns Promise<AminoSignResponse>

  • Creates a Secp256k1Wallet from the given private key

    Parameters

    • privkey: Uint8Array

      The private key.

    • prefix: string = "cosmos"

      The bech32 address prefix (human readable part). Defaults to "cosmos".

    Returns Promise<Secp256k1Wallet>

Generated using TypeDoc