getbalancev2 - Ontology
Example code for the getbalancev2 json-rpc method. Сomplete guide on how to use getbalancev2 json-rpc in GetBlock.io Web3 documentation.
Parameters
address
- string
Base58 address
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getbalancev2",
"params": ["Adj7W5Z2hTeKH7YwJsfMzLuwiD671mvJ6X"],
"id": "getblock.io"}'
Response
{
"desc": "SUCCESS",
"error": 0,
"id": "getblock.io",
"jsonrpc": "2.0",
"result": {
"height": "16224577",
"ong": "9380961617034000000000",
"ont": "14540000000000"
}
}
Last updated