bob.balances Table: ez_balances_erc20_daily Type: Base Table
What
This table provides daily ERC20 token balance snapshots for verified token contracts by making directbalanceOf contract calls at the end of each day. It captures the current token balance for
each address-token pair that has had transfer activity, providing a comprehensive view of token
holdings across all verified ERC20 tokens with decimal adjustments and USD valuations where
available. Historical ERC20 balances data available, starting from 2025-06-10.
Key Use Cases
- Daily portfolio tracking and balance monitoring for ERC20 tokens
- Historical balance analysis and trend identification
- Token holder distribution analysis at daily granularity
- Wallet balance snapshots for reporting and analytics
- Cross-token balance comparisons and concentration analysis
- Token supply distribution monitoring over time
- Daily balance-based yield and return calculations
Important Relationships
- Join with fact_blocks: Use
block_numberfor block metadata and timestamps - Join with dim_labels: Use
addressfor entity identification and categorization - Join with dim_contracts: Use
contract_addressfor token contract details - Join with ez_prices_hourly: USD valuations already included but can be refreshed
- Join with ez_balances_native_daily: Compare with native token daily balances
- Join with ez_token_transfers: Compare daily balances with transfer activity
Commonly-used Fields
address: The account address holding the token balancecontract_address: The ERC20 token contract addresssymbol: Token symbol (USDC, WETH, etc.)balance: Token balance at end of day, decimal adjusted to standard unitsbalance_usd: USD value of the token balance at end of daybalance_raw: Raw balance in smallest token unit (wei equivalent)balance_precise: Precise decimal-adjusted balance as stringdecimals: Number of decimal places for the tokenblock_date: The date for which this balance snapshot was taken
Sample queries
Daily Token Holdings by AddressColumns
| Column Name | Data Type | Description |
|---|---|---|
| BLOCK_NUMBER | NUMBER | Sequential counter representing the position of a block in the blockchain since genesis (block 0). |
- Immutable once finalized
- Primary ordering mechanism for blockchain data
- Increments by 1 for each new block
- Used as a proxy for time in many analyses
- Deduplication in incremental loads
- Join operations for data quality checks
- Troubleshooting specific records
- Data freshness monitoring
- Incremental processing markers
- Debugging data pipeline issues
- SLA tracking