Module: @shareledgerjs/amino
Classes
Interfaces
Type Aliases
Algo
Ƭ Algo: "secp256k1"
| "ed25519"
| "sr25519"
AminoConverters
Ƭ AminoConverters: Record
<string
, AminoConverter
| "not_supported_by_chain"
>
A map from protobuf type URL to the AminoConverter implementation if supported on chain
Functions
makeSignDoc
▸ makeSignDoc(msgs
, fee
, chainId
, memo
, accountNumber
, sequence
): StdSignDoc
Parameters
Name | Type |
---|---|
msgs | readonly AminoMsg [] |
fee | StdFee |
chainId | string |
memo | undefined | string |
accountNumber | string | number |
sequence | string | number |
Returns
serializeSignDoc
▸ serializeSignDoc(signDoc
): Uint8Array
Parameters
Name | Type |
---|---|
signDoc | StdSignDoc |
Returns
Uint8Array
sortedJsonStringify
▸ sortedJsonStringify(obj
): string
Returns a JSON string with objects sorted by key
Parameters
Name | Type |
---|---|
obj | any |
Returns
string