Extracts the specific balance denomination from the ABCI response
abciData
(string | null) the base64-encoded ABCI datadenomination
string the required denomination
Extracts the account sequence from the ABCI response
abciData
(string | null) the base64-encoded ABCI data
Returns number
Extracts the account number from the ABCI response
abciData
(string | null) the base64-encoded ABCI data
Returns number
Waits for the transaction to be committed to a block in the chain of the specified provider. This helper does a search for incoming blocks and checks if a transaction
provider
Provider the provider instancehash
string the base64-encoded hash of the transactionfromHeight
number the starting height for the search. If omitted, it is the latest block in the chain ( optional, defaultlatest
)timeout
number the timeout in MS for the search (optional, default15000
)
Returns Promise<Tx>
Creates a new JSON-RPC 2.0 request
method
string the requested methodparams
Array? the requested params, if any
Returns RPCRequest
Creates a new JSON-RPC 2.0 response
result
Result the response result, if anyerror
RPCError the response error, if any
Returns RPCResponse<Result>
Parses the base64 encoded ABCI JSON into a concrete type
data
string the base64-encoded JSON
Returns Result
Converts a string into base64 representation
str
string the raw string
Returns string
Converts a base64 string into a Uint8Array representation
str
string the base64-encoded string
Returns Uint8Array
Converts a Uint8Array into base64 representation
data
Uint8Array the Uint8Array to be encoded
Returns string