Skip to main content

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

NameType
msgsreadonly AminoMsg[]
feeStdFee
chainIdstring
memoundefined | string
accountNumberstring | number
sequencestring | number

Returns

StdSignDoc


serializeSignDoc

serializeSignDoc(signDoc): Uint8Array

Parameters

NameType
signDocStdSignDoc

Returns

Uint8Array


sortedJsonStringify

sortedJsonStringify(obj): string

Returns a JSON string with objects sorted by key

Parameters

NameType
objany

Returns

string