eth_getBalance RPC Method
Please note that for this RPC method, if the block number is set to pending, Polygon zkEVM assumes it as the latest.
Parameters
address
string
REQUIRED
The address (20 bytes) to check for balance
blockNumber/tag
string
REQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized (safe and finalized tags are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova and Avalanche C-chain), see the default block parameter description in the official Ethereum documentation
Returns
result
The ETH balance of the specified address in hexadecimal value, measured in wei
Request
1curl https://docs-demo.zkevm-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_getBalance","params":["0x0043d60e87c5dd08c86c3123340705a1556c4719", "latest"],"id":1,"jsonrpc":"2.0"}'5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free