Skip to main content
The SQL API schema is a set of opinionated tables and columns used to organize onchain data for efficient retrieval.

Supported Tables

base.blocks

Block metadata including timestamps and difficulty.
See an example block on Basescan to understand how blockchain data corresponds to these SQL fields.

base.events

Decoded event logs with contract interactions on Base.
See example events on Basescan to see how event logs appear on the blockchain.

base.transactions

Transaction data including hash, block number, gas usage.
See an example transaction on Basescan to understand how transaction data corresponds to these SQL fields.

base.encoded_logs

Encoded log data of event logs that aren’t able to be decoded by our event decoder (ex: log0 opcode).

base.transfers

Token transfer events including block details, addresses, and amounts
See example token transfers on Basescan (USDC on Base) to understand how transfer events appear on the blockchain.