eth_getBalance
Retrieve the ETH balance of any Ethereum address at a specified block (latest, earliest, or pending) across multiple networks.
Instructions
Get the ETH balance of an address at a specific block.
Args:
address (string): Ethereum address to check (20-byte hex, e.g., '0x...').
tag (string): Block reference - 'latest', 'earliest', or 'pending'.
network (string, optional): Ethereum network to query. Defaults to 'mainnet'.
Returns:
Hexadecimal string representing balance in wei (e.g., '0xde0b6b3a7640000' for 1 ETH).
Examples:
"Get current balance": { "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "tag": "latest" }
"Check Sepolia balance": { "address": "0x...", "tag": "latest", "network": "sepolia" }
Errors:
InvalidParams: When address format is invalid or tag is not recognized.
InternalError: When Infura API is unavailable or returns an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The Ethereum address to check the balance for. | |
| tag | No | The block parameter to use. | latest |
| network | No | The Ethereum network to query, e.g., 'mainnet' or 'sepolia'. | mainnet |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable. | json |