Last updated 25 days ago
DATA - bytes
DATA
address to check for balance.
QUANTITY - string
QUANTITY
currently, only "latest" is available.
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0x30760c7e10b1d3509d8d64a7e9eb9ab94bc83495", "latest"], "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": "0x863b9dd3d1f" }
Example code for the eth_getBalance json-rpc method. Сomplete guide on how to use eth_getBalance json-rpc in GetBlock.io Web3 documentation.