Function get_balance

Source
pub async fn get_balance(
    maybe_rpc_id: &str,
    node_address: &str,
    verbosity_level: u64,
    state_root_hash: &str,
    purse: &str,
) -> Result<SuccessResponse<GetBalanceResult>, CliError>
Expand description

Retrieves a purse’s balance at a given state root hash.

state_root_hash must be a hex-encoded, 32-byte hash digest.

purse is a URef, formatted as e.g.

uref-0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20-007

For details of other parameters, see the module docs.