Skip to main content

state.BalanceForAddress RPC Method

Retrieves the Celestia coin balance for the given address and verifies the returned balance against the corresponding block's AppHash.

Updated on
Nov 19, 2024

state.BalanceForAddress RPC Method

Parameters

address
string
REQUIRED
The address for which the balance is to be fetched

Returns

result
object
The result object which contains the following fields:
denom
string
Specifies the denomination of the currency
amount
string
Represents the quantity of the specified denomination
Request
1
curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"id": 1,
5
"jsonrpc": "2.0",
6
"method": "state.BalanceForAddress",
7
"params": [
8
"celestia1377k5an3f94v6wyaceu0cf4nq6gk2jtpc46g7h"
9
]
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free