Defines a transaction broadcast mode where the client waits for a CheckTx execution response only.
Defines a transaction broadcast mode where the client waits for the transaction to be committed in a block.
Defines a transaction broadcast mode where the client returns immediately.
BIP32 derivation path for Cosmos keys.
Bech32 prefix for Cosmos addresses.
Derive a Bech32 address from a public key.
public key bytes
Bech32 human readable part, defaulting to COSMOS_PREFIX
Bech32-encoded address
Prepare a signed transaction for broadcast.
signed transaction
broadcast mode
a transaction broadcast
Derive a keypair from a BIP32 master key.
BIP32 master key
BIP32 derivation path, defaulting to COSMOS_PATH
derived public and private key pair
Derive a BIP32 master key from a mnemonic.
BIP39 mnemonic seed
BIP32 master key
Create a transaction with metadata for signing.
a transaction with metadata for signing
Create a signature from a StdSignMsg.
transaction with metadata for signing
a signature and corresponding public key
Create signature bytes from a StdSignMsg.
transaction with metadata for signing
private key bytes
signature bytes
Create a Wallet from a BIP32 master key.
BIP32 master key
Bech32 human readable part, defaulting to COSMOS_PREFIX
BIP32 derivation path, defaulting to COSMOS_PATH
a keypair and address derived from the provided master key
Create a Wallet from a known mnemonic.
BIP39 mnemonic seed
Bech32 human readable part, defaulting to COSMOS_PREFIX
BIP32 derivation path, defaulting to COSMOS_PATH
a keypair and address derived from the provided mnemonic
Hash bytes using RIPEMD160.
bytes to hash
hashed bytes
Hash bytes using SHA256.
bytes to hash
hashed bytes
Sign the sha256 hash of bytes with a secp256k1 private key.
bytes to hash and sign
private key bytes
signed hash of the bytes
Sign a transaction.
This combines the Tx and SignMeta into a StdSignMsg, signs it,
and attaches the signature to the transaction. If the transaction is already signed, the signature will be
added to the existing signatures.
transaction (signed or unsigned)
metadata for signing
public and private key pair (or Wallet)
a signed transaction
Verify a StdSignMsg against a StdSignature.
transaction with metadata for signing
signature
true if the signature is valid and matches, false otherwise
Verify a signature against a StdSignMsg.
transaction with metadata for signing
signature bytes
public key bytes
true if the signature is valid and matches, false otherwise
Verify a StdSignMsg against multiple StdSignatures.
transaction with metadata for signing
signatures
true if all signatures are valid and match, false otherwise or if no signatures were provided
Generated using TypeDoc
A transaction broadcast mode.
'sync'defines a transaction broadcasting mode where the client returns immediately.'async'defines a transaction broadcasting mode where the client waits for aCheckTxexecution response only.'block'defines a transaction broadcasting mode where the client waits for the transaction to be committed in a block.