Historical balances
The two-argument overload reads latest and can change between runs.
Use the block_number overload for reproducible evidence.
Many providers require archive access for older historical balances.
Returns an address's native-token balance as exact Wei in live, pinned, or retained execution state. Without a CLIENT, it builds a reusable READ and does not access state.
Local
SELECT native_balance('0x0000000000000000000000000000000000000001'::ADDRESS);Exact signatures with descriptions, requirements, inputs, returns, and examples.
native_balance(CLIENT, ADDRESS) # Immediate Read · RPC required Reads the CLIENT's current state context; only a live CLIENT necessarily resolves latest state.
| Name | Type |
|---|---|
balance | UINT256 |
Native balance in Wei. Returns a UINT256 raw Wei balance. Historical block reads may require an archive-capable RPC provider.
The two-argument overload reads latest and can change between runs.
Use the block_number overload for reproducible evidence.
Many providers require archive access for older historical balances.
The READ accesses state only when an OBSERVATION consumes it during PROGRAM execution.
native_balance(CLIENT, ADDRESS, BIGINT) # Immediate Read · RPC required Returns the Wei balance at an explicit block height for reproducible historical state queries.
| Name | Type |
|---|---|
balance | UINT256 |
Native balance in Wei. Returns a UINT256 raw Wei balance. Historical block reads may require an archive-capable RPC provider.
Named parameters · RPC required
SELECT native_balance(
$client, -- client
'0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'::address, -- address
4200000 -- block_number
) AS balance;native_balance(ADDRESS) # Read Builder · RPC required Records one address for a later native-balance lookup; construction does not access state.
Named parameters · RPC required
SELECT native_balance(
$client, -- client
'0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'::address -- address
) AS balance;