state_get_balance
This method returns a purse's balance from a network. The request takes in the formatted representation of a purse URef as a parameter.
Reference: Here
To query for the balance of an Account, you must provide the formatted representation of the Account's main purse URef, which can be obtained from the state_get_account_info
response. The response contains the balance of a purse in motes.
For instance, one native layer-1 token of the Casper Mainnet CSPR is comprised of 1,000,000,000 motes. On a different Casper network, the representation of token-to-motes may differ.
Parameters:
state_root_hash
-string
The hash of state rootpurse_uref
-string
Formatted URef
Returned Value:
api_version
-string
RPC API versionbalance_value
-string
The balance value in motesmerkle_proof
-string
A merkle proof is a construction created using a merkle tree that allows verification of the associated hashes
Last updated