Skip to main content
stacks holds the standardized Stacks tables. Stacks sits on top of Bitcoin and runs contracts of its own, written in a language called Clarity, so its tables differ from the rest of the Bitcoin family: blocks and transactions have extra columns for that, and a third table, events, records asset movements, locked STX (the chain’s own token), and the notes its contracts write. A Stacks transaction comes in one of several kinds, and transaction_type says which. Each kind fills its own group of columns: token_transfer_* for a transfer, contract_call_* for a call into a contract, smart_contract_* for publishing one. Because Stacks runs contracts, its tokens reach the catalog’s token list, and some have a daily USD price. Tokens covers the token list and the daily price table in depth. Chains covers the list of chains we track.

Tables

TableSinceDescription
blocks2024-04One row per block, with burn-block anchoring and execution cost totals.
transactions2024-04One row per transaction, keyed on transaction_id, with the columns its Clarity type populates.
events2021-01One row per event, keyed on transaction_id and event_index: asset transfers, STX locks and contract logs.
events reaches back to 2021-01, while blocks and transactions begin on 2024-04-16.

Sample queries

Count events by type on one day.