To use the eth_getBalance method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.
Parameters
- addressstringREQUIRED
The address (20 bytes) to check for balance
- blockNumber/tagstringREQUIRED
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. On Avalanche C-Chain, pending resolves to the last executed block by default. When api-resolve-pending-to-last-executed is false, this method rejects pending.
Returns
- resultstring
The value of the balance of the specified address in hexadecimal value, measured in wei
Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free