eth_getBalance

Returns the balance of given account address in wei.

📘

Supported on Polygon zkEVM (mainnet) only.

Parameters

  • address- string - The address (20 bytes) to check for balance
  • blockNumber/tag - string - The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized

Returns

  • result- The ETH balance of the specified address in hexadecimal value, measured in wei

API Endpoint

The format of a polygon-zkevm-rpc API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/polygon-zkevm-rpc/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/polygon-zkevm-rpc/

Example

Request

curl https://open-platform.nodereal.io/{{apiKey}}/polygon-zkevm-rpc/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getBalance","params":["0x0043d60e87c5dd08c86c3123340705a1556c4719", "latest"],"id":1,"jsonrpc":"2.0"}'

Result