ETH Indexer
ETH Indexer reads the TRACKER stream that ETH Tracker publishes, and writes the events to PostgreSQL. It reads token and pool names from the chain as new contracts appear.
Tables
Every event row links to a tx row through tx_id.
| Table | Holds | Source subject |
|---|---|---|
tx | Transaction hash, block number, block time (UTC), success | All |
token_transfer | Voucher transfers | TOKEN_TRANSFER, TOKEN_TRANSFER_FROM |
token_mint | Mints | TOKEN_MINT |
token_burn | Burns | TOKEN_BURN |
pool_swap | Pool swaps | POOL_SWAP |
pool_deposit | Pool deposits | POOL_DEPOSIT |
faucet_give | Faucet payouts | FAUCET_GIVE |
ownership_change | Contract ownership transfers | OWNERSHIP_TRANSFERRED |
tokens | Voucher name, symbol, decimals, sink address | Read from the chain |
pools | Pool name and symbol | Read from the chain |
Amounts are stored as NUMERIC in the token's smallest unit. log_index is the log's position in the block, and 0 for a reverted transaction.
The indexer serves Go runtime metrics on /metrics. It does not publish anything.
These pages follow ETH Indexer at de07cc4.