rsk

Rsk (RSK)

Method: POST eth_getBalance

dropdown

POST eth_getBalance

Returns the balance of the account of given address.

Parameters

DATA - string

address to check for balance.

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Request

curl --location --request POST 'https://rsk.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x8afad2f417e5132ee983b74d28600c0dedcc3e07", "latest"],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xcb15392b4f385bd5"
}