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

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 120+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# Bitcoin OpenAPI Schema

> Bitcoin OpenAPI specification for the SQD Portal.

The Bitcoin OpenAPI specification for the SQD Portal is published at [https://docs.sqd.dev/en/api/catalog/bitcoin/openapi.yaml](https://docs.sqd.dev/en/api/catalog/bitcoin/openapi.yaml).

Use it to import the Portal API into OpenAPI-aware tools — code generators, API testing platforms (Postman, Bruno), or LLM-agent toolchains that consume OpenAPI to build tool definitions.

## Fetch the spec

```bash theme={"system"}
curl -O https://docs.sqd.dev/en/api/catalog/bitcoin/openapi.yaml
```

For the interactive, browsable version of the same endpoints, see the [Bitcoin Portal API reference](/en/api/bitcoin/metadata).


## Related topics

- [EVM OpenAPI Schema](/en/ai/evm-openapi.md)
- [Hyperliquid OpenAPI Schema](/en/ai/hyperliquid-openapi.md)
- [Solana OpenAPI Schema](/en/ai/solana-openapi.md)
- [Substrate OpenAPI Schema](/en/ai/substrate-openapi.md)
- [Tron OpenAPI Schema](/en/ai/tron-openapi.md)


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