functions dataset compute them at query time from Balance changes, adding up every change recorded for one token. Each takes a chain, a token address and a token standard.
Functions
- Latest
- Historical
functions.calculate_latest_token_balances returns everyone holding the token right now: the last end-of-day balance per account, positive balances only. An account that sent everything away falls out rather than appearing at zero.| Parameter | Type | Description |
|---|---|---|
p_chain_id | STRING | Chain the token is deployed on, for example ethereum. |
p_token_address | STRING | Contract address of the token. |
p_token_type | STRING | Token standard, such as erc20. |
| Return column | Type | Description |
|---|---|---|
account_address | STRING | Account holding a positive balance. |
balance | BIGNUMERIC | Latest end-of-day balance in token units. |
Sample queries
- Current holders
- Holders on a date
List the current holders of one token.
Notes
Address matching follows the chain’s own rules. EVM addresses are case-insensitive: they are stored lowercase and both functions lowercase their inputs, so a checksummed address copied from an explorer resolves. Solana addresses are base58 and case-sensitive: they are stored and matched verbatim. Balances are added up in exact whole-number arithmetic and scaled by the token’sdecimals, so a drained account reads exactly zero and is not counted as a holder.