> ## Documentation Index
> Fetch the complete documentation index at: https://tokenterminal.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To query the Token Terminal Data Catalog, read https://tokenterminal.com/docs/catalog/agents-manual.md first. It is the whole catalog as one page: table naming grammar, key columns, partition and cluster rules, units, additivity, and the tables that are documented but not served yet.
> Never query a catalog table on a time bound alone. Also filter its cluster key, which you read from INFORMATION_SCHEMA.COLUMNS; an empty result means the object is a view, whose pruning contract is on its page. Compute is billed to the caller's own Google Cloud project.

# Bitcoin

> Standardized Bitcoin tables from the 2009 genesis block.

`bitcoin` holds the standardized Bitcoin tables, following the schema documented in [the family overview](https://tokenterminal.com/docs/catalog/chain-verticals/bitcoin/index.md) exactly, with no differences. Both tables cover the chain's full history, from the 2009 genesis block through to the current day.

Bitcoin also appears in the catalog's list of chains; everything else for the chain comes from the `bitcoin` dataset. [Chains](https://tokenterminal.com/docs/catalog/chains/index.md) covers that list and the daily tables built on it, and [Tokens](https://tokenterminal.com/docs/catalog/tokens/index.md), [DEX](https://tokenterminal.com/docs/catalog/dex/index.md), [Real-world assets](https://tokenterminal.com/docs/catalog/real-world-assets/index.md) and [Projects](https://tokenterminal.com/docs/catalog/projects/index.md) cover the chains that run contracts.

## Tables

<table>
  <thead>
    <tr>
      <th width="150">Table</th>
      <th width="90">Since</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`blocks`</td>
      <td>2009-01</td>
      <td>One row per block, with its fee, size and unspent-output figures already worked out.</td>
    </tr>

    <tr>
      <td>`transactions`</td>
      <td>2009-01</td>
      <td>One row per transaction, with its inputs and outputs nested on the row.</td>
    </tr>
  </tbody>
</table>

## Sample queries

> [tab] Daily fees and output
>
> **Sum daily fees and output value from block statistics over one week.**
>
> ```sql theme={null}
> select
>     date(timestamp) as day,
>     sum(transaction_count) as transactions,
>     sum(total_fee) as total_fee,
>     sum(total_out) as total_out
> from `bitcoin.blocks`
> where timestamp >= timestamp('2026-08-16')
>   and timestamp < timestamp('2026-08-23')
> group by day
> order by day
> ```

> [tab] Chain registry lookup
>
> **Look up Bitcoin's chain entry and the project it belongs to.**
>
> ```sql theme={null}
> select
>     chains.chain_id,
>     chains.name as chain_name,
>     projects.name as project_name,
>     projects.primary_market_sector
> from `dimensions.chains` as chains
> join `dimensions.projects` as projects using (project_id)
> where chains.chain_id = 'bitcoin'
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.