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
| Table | Since | Description |
|---|---|---|
blocks | 2024-04 | One row per block, with burn-block anchoring and execution cost totals. |
transactions | 2024-04 | One row per transaction, keyed on transaction_id, with the columns its Clarity type populates. |
events | 2021-01 | One 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
- Events by type
- Priced tokens
Count events by type on one day.