eth_getBalance

Retrieves the balance of the specified Ethereum address.

Example

import { getRpcClient, eth_getBalance } from "thirdweb/rpc";
const rpcRequest = getRpcClient({ client, chain });
const balance = await eth_getBalance(rpcRequest, {
address: "0x...",
});

Parameters

Returns

A promise that resolves to the balance of the address in wei as bigint.