eth_getBalance-polygon

Returns the balance of the account of given address.

Parameters

  • DATA, 20 Bytes - address to check for balance.
  • QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter.
curl https://polygon-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBalance",
  "params": [
    "0x014e32b21c634259B1a281ceaE50BA88979Cd084",
    "latest"
  ]
}'

Returns

  • QUANTITY - integer of the current balance in wei.
{"jsonrpc":"2.0","id":1,"result":"0x1c58bf02c0c047cf6"}

Try Yourself

Language
Click Try It! to start a request and see the response here!