Query Balances
This guide will cover the following query methods:
mnovad
& Tendermint RPCJSON-RPC
gRPC
mnovad
& Tendermint RPC
mnovad
& Tendermint RPCUpon installation and configuration of the Metanovaverse Daemon, developers can query account balances using mnovad
with the following CLI command:
where:
$MNOVAADDRESS
is the Metanovaverse address with balances of interest (eg. mnova...
).(optional)
$COUNTTOTAL
counts the total number of records in all balances to query for.(optional)
$HEIGHT
is the specific height to query state at (can error if node is pruning state).(optional)
$OUTPUT
is the output format (eg.text
).(optional if running local node)
$NODE
is the Tendermint RPC node information is requested from
Details of non-native currencies can be queried with the following CLI command:
where $DENOM
is the denomination of the coin (eg. ibc/ED07A3391A1...
).
JSON-RPC
where:
$ETHADDRESS
is the Etherum hex-address the balance is to be queried from. Note that MNOVA addresses(optional if running local node)
$NODE
is the JSON-RPC node information is requested from
where:
$SENDERCONTRACTADDRESS
is the Ethereum hex-address this smart contract call is sent from.$ERCCONTRACTADDRESS
is the Ethereum hex-address of the ERC-20 contract corresponding to the coin denomination being queried.(optional if running local node)
$NODE
is the JSON-RPC node information is requested from
gRPC
where:
$MNVADDRESS
is the Metanovaverse address with balances of interest (eg."mnova..."
).$NODE
is the Cosmos gRPC node information is requested(optional)
$OUTPUT
is the output format (eg.plaintext
).
Last updated