Represents a generic function that takes an
Any encoded account from the chain
and extracts some common
Account information from it.
A map from protobuf type URL to the AminoConverter implementation if supported on chain
Basic implementation of AccountParser. This is supposed to support the most relevant common Cosmos SDK account types. If you need support for exotic account types, you'll need to write your own account decoder.
Ensures the given result is a failure. Throws a detailed error message otherwise.
Ensures the given result is a success. Throws a detailed error message otherwise.
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.
If paginationKey is set, return a
PageRequest with the given key.
If paginationKey is unset, return
Use this with a query response's pagination next key to request the next page.
Takes a string or binary encoded
github.com/cosmos/cosmos-sdk/types.Dec from the
protobuf API and converts it into a
Decimal with 18 fractional digits.
See https://github.com/cosmos/cosmos-sdk/issues/10863 for more context why this is needed.
Takes a Tendemrint 0.34 event with binary encoded key and value
and converts it into an
Event with string attributes.
The Cosmos Hub derivation path in the form
with 0-based account index
Creates a signed transaction from signer info, transaction body and signatures. The result can be broadcasted after serialization.
makeMultisignedTxBytes instead if you want to broadcast the
Creates a signed transaction from signer info, transaction body and signatures. The result can be broadcasted.
This is a wrapper around
makeMultisignedTx that encodes the transaction for broadcasting.
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