Virtual TestNets are live! ⚡️ Test and stage dapps on real-time production data.  Schedule Office Hours

eth_getBalance - Optimism Sepolia


Summary

Returns the balance of the account of given address.

Parameters

1. Address Address

Address to check for balance
Example: i.e. 0x12345...

2. Block Number Quantity or Tag

Hex block number, or the string latest, earliest or pending
Example: i.e. latest or pending

Code Examples