Returns the account balance for a given address
Last updated 3 years ago
Was this helpful?
DATA, 20 Bytes - address to check for the balance.
DATA
QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the
QUANTITY|TAG
"latest"
"earliest"
"pending"
The balance of the given account
// Request curl -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x0000000000000000000000000000000000001000", "0x186A0"] ,"id":32}' https://fantom-mainnet-api.bwarelabs.com/<your-endpoint-id> // Response { "jsonrpc": "2.0", "id": 32, "result": "0xb284fbfd108db80" }