Actions20
- Block Number
- Chain ID
- Gas Price
- Get Balance
- Get Block by Hash
- Get Block by Number
- Get Block Tx Count by Hash
- Get Block Tx Count by Number
- Get Code
- Get My Balance
- Get Transaction by Block Hash and Index
- Get Transaction by Block Number and Index
- Get Transaction by Hash
- Get Transaction Count
- Get Transaction Receipt
- Get Uncle Count by Block Hash
- Get Uncle Count by Block Number
- Help
- Peer Count
- Syncing
Get Balance
AI-generatedSummary
Retrieves the ether balance for a specified Ethereum address on the selected network.
Inputs
- network — The network to query. Options: mainnet (default), sepolia.
- block — The block number (integer) or state identifier to query. Options: latest (default), earliest, pending, safe, finalized.
- address (required) — The Ethereum address (0x-prefixed hex) to query for its balance.
Output shape
One item per input item containing the balance in Wei (a number).
The balance is returned as a raw number in Wei. To convert to Ether, divide by 10^18.
Examples
Example 1: Check the latest balance of a contract address on the Ethereum Mainnet.
Network: Mainnet, Block: latest, Address: 0x...
Example 2: Check the balance of an address on the Sepolia testnet at a specific block.
Network: Sepolia, Block: 12345678, Address: 0x...