facts.token_transfers holds one row per fungible token transfer, read from the Transfer logs token contracts emit onchain. token_type names the token standard and chain_id the chain.
Columns
| Column | Type | Description |
|---|---|---|
block_timestamp | TIMESTAMP | Time of the block containing the transfer. Partition column. |
block_number | INT64 | Number of the block containing the transfer. |
transaction_hash | STRING | Hash of the transaction that emitted the transfer. |
log_index | INT64 | Position of the Transfer log in the block. |
unique_id | INT64 | Row key: fingerprint of chain_id, block_number, transaction_hash, log_index. |
chain_id | STRING | Chain the transfer happened on. |
token_type | STRING | Token standard, such as erc20. |
token_id | STRING | Token transferred: {token_address}-{chain_id}. |
token_address | STRING | Contract address of the token. |
from_address | STRING | Account the value left. |
to_address | STRING | Account the value arrived at. |
value_raw | STRING | Raw amount as text; a uint256 exceeds every BigQuery number type. |
Sample queries
- One token, one day
- Largest transfers
Read one tokenβs transfers on a single day. Cast
value_raw to BIGNUMERIC and divide by 10^decimals from dimensions.tokens to get the token amount.