Marketplace has launched, further enabling blockchain developers! Learn more


eth_getBalance RPC method

The eth_getBalance EVM method is only supported on the Avalanche C-Chain.


  1. Address - The address to check for balance.
  2. Quantity or Tag - (optional) Integer block number, or the string 'latest', 'earliest' or 'pending', see the default block parameter.


  1. Result - Integer value of current balance in wei encoded as a hexadecimal.

Code Examples:

To use the eth_getBalance EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider("");
  const balance = await provider.getBalance(
Ready to get started? Create a free account