Creates a coin.
If your values do not exceed the safe integer range of JS numbers (53 bit), you can use the number type here. This is the case for all typical Cosmos SDK chains that use the default 6 decimals.
In case you need to supportr larger values, use unsigned integer strings instead.
Creates a list of coins with one element.
Decodes a pubkey from a protobuf Any
into Pubkey
.
This supports single pubkeys such as Cosmos ed25519 and secp256k1 keys
as well as multisig threshold pubkeys.
Takes a serialized TxRaw (the bytes stored in Tendermint) and decodes it into something usable.
Takes a pubkey in the Amino JSON object style (type/value wrapper)
and convertes it into a protobuf Any
.
This is the reverse operation to decodePubkey
.
Creates and serializes an AuthInfo document.
This implementation does not support different signing modes for the different signers.
The Cosmos Hub derivation path in the form m/44'/118'/0'/0/a
with 0-based account index a
.
Takes a coins list like "819966000ucosm,700000000ustake" and parses it.
This is a Stargate ready version of parseCoins from @cosmjs/amino. It supports more denoms.
Generated using TypeDoc
Decodes a single pubkey (i.e. not a multisig pubkey) from
Any
intoSinglePubkey
.In most cases you probably want to use
decodePubkey
.