Skip to main content

eth_getAssetBalance RPC Method

Getting an account's non-AVAX balance.

Updated on
Dec 4, 2024

eth_getAssetBalance RPC Method

To use the eth_getAssetBalance method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

Parameters

address
string
The owner ofthe asset
blk
string
The blocknumber or hash which to retrieve the balance.
assetID
string
The id of theasset for which the balance is requested.

Returns

result
integer
The balance of anasset.
Request
1
curl --location --request POST https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"method": "eth_getAssetBalance",
6
"params": [
7
"0x8723e5773847A4Eb5FeEDabD9320802c5c812F46",
8
"latest",
9
"3RvKBAmQnfYionFXMfW5P8TDZgZiogKbHjM8cjpu16LKAgF5T"
10
],
11
"id": 1
12
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free