Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Bitview Silent Payments API
description: 'Bitview is a free, open-source Bitcoin data server: on-chain metrics, blocks, mempool and mining data, with charts and an API, at bitview.space or beside your own Bitcoin Core node.
API for querying Bitcoin blockchain data, mempool state, and on-chain series.
### Features
- **Mempool.space compatible**: Blocks, transactions, addresses, mining, fees, and mempool endpoints match the mempool.space REST API
- **Series**: Thousands of on-chain time-series across multiple indexes (date, block height, etc.)
- **Multiple formats**: JSON and CSV output
- **For LLMs**: `/llms.txt` for discovery, `/api.json` a compact custom summary of this spec for reading (not OpenAPI); build tools from `/openapi.json`
- **MCP**: Stateless, read-only access to these operations at mcp.bitview.space, with no authentication required
### Quick start
```bash
curl -s https://bitview.space/api/blocks/tip/height
curl -s https://bitview.space/api/v1/fees/recommended
curl -s https://bitview.space/api/mempool
curl -s https://bitview.space/api/series/search?q=price
```
### Errors
Errors use `application/problem+json`:
```json
{
"error": {
"type": "not_found",
"code": "series_not_found",
"message": "''foo'' not found, did you mean ''bar''? What became of it: /changes/?id=foo",
"doc_url": "/api"
}
}
```
- **`type`**: Error category, following the status — `invalid_request` (4xx other than 404), `not_found` (404), `unavailable` (503), `timeout` (504), or `internal` (other 5xx); see the `ErrorType` schema
- **`code`**: Machine-readable error code (e.g. `invalid_address`, `series_not_found`, `weight_exceeded`); see the `ErrorCode` schema
### Client Libraries
- JavaScript
- Python
- Rust
- MCP
### Links
- GitHub
- Bitview Studio - Charts of any series, built on this API'
termsOfService: https://bitview.space/terms/
contact:
name: Bitview
url: https://bitview.space/support/
email: support@bitview.space
license:
name: MIT
url: https://github.com/bitcoinresearchkit/mono/blob/main/LICENSE
version: v0.13.0
x-privacy-policy: https://bitview.space/privacy/
tags:
- name: Silent Payments
description: 'BIP352 silent payments for light wallets: BlindBit oracle v1''s HTTP API (what spdk and Dana, Bull Bitcoin and blindbitd speak) under `/blindbit/mainnet/`, the public oracle''s paths, so a wallet switches by changing the host. Per block: the tweaks of its eligible transactions, BIP158 filters of its new Taproot outputs and of its spends of Taproot outputs, its eligible transactions'' Taproot outputs and its spent index. Precomputed: no tweak or filter math per request. Every eligible transaction is indexed; `dustLimit` is optional, 0 by default, any value.
Out on purpose: mempool tweaks and a server-side scan. Both need a push subscription, which Bitview''s API doesn''t offer, and a scan would hold a wallet''s scan key and minutes of CPU per request on a stateless public server.'
paths:
/blindbit/mainnet/info:
get:
tags:
- Silent Payments
summary: Server info
description: 'The network, the last indexed block, and which tweak modes the server serves: the full index and cut-through, both taking a dust limit.'
operationId: get_blindbit_info
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/BlindbitInfo'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/block-height:
get:
tags:
- Silent Payments
summary: Last indexed block
description: The height of the last indexed block.
operationId: get_blindbit_block_height
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/BlindbitBlockHeight'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/block-hash/{height}:
get:
tags:
- Silent Payments
summary: Block hash
description: The hash of the block at a height.
operationId: get_blindbit_block_hash
parameters:
- in: path
name: height
required: true
schema:
$ref: '#/components/schemas/Height'
style: simple
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/BlindbitBlockHash'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'404':
description: Resource not found
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/tweak-index/{height}:
get:
tags:
- Silent Payments
summary: Tweak index
description: The tweaks of a block's eligible transactions with a Taproot output of at least `dustLimit` sats, as compressed points in hex, in block order. A light wallet multiplies each by its scan key and tests the resulting output keys against the block's `filter/new-utxos`. `dustLimit` is optional, 0 (every eligible transaction) by default, as BlindBit takes it.
operationId: get_blindbit_tweak_index
parameters:
- in: path
name: height
required: true
schema:
$ref: '#/components/schemas/Height'
style: simple
- in: query
name: dustLimit
description: 'Least value in sats of a Taproot output for its transaction to be listed; 0 (every
eligible transaction) when left out, as BlindBit takes it.'
schema:
description: 'Least value in sats of a Taproot output for its transaction to be listed; 0 (every
eligible transaction) when left out, as BlindBit takes it.'
type: integer
format: uint64
minimum: 0
default: 0
style: form
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Tweak'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'404':
description: Resource not found
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/tweaks/{height}:
get:
tags:
- Silent Payments
summary: Cut-through tweaks
description: '`tweak-index`''s tweaks of the transactions that still have an unspent Taproot output of at least `dustLimit` sats, as of the last indexed block: what a wallet restoring its balance alone scans. `dustLimit` as in `tweak-index`.'
operationId: get_blindbit_tweaks
parameters:
- in: path
name: height
required: true
schema:
$ref: '#/components/schemas/Height'
style: simple
- in: query
name: dustLimit
description: 'Least value in sats of a Taproot output for its transaction to be listed; 0 (every
eligible transaction) when left out, as BlindBit takes it.'
schema:
description: 'Least value in sats of a Taproot output for its transaction to be listed; 0 (every
eligible transaction) when left out, as BlindBit takes it.'
type: integer
format: uint64
minimum: 0
default: 0
style: form
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Tweak'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'404':
description: Resource not found
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/filter/{kind}/{height}:
get:
tags:
- Silent Payments
summary: Block filter
description: A BIP158 Golomb-coded set (P = 19, M = 784,931, keyed by the block hash) of the block's new Taproot output keys (`new-utxos`, the x-only keys) or of its spends of Taproot outputs (`spent`, hashed as in `spent-index`). Repeated elements count once, as in BIP158 (BlindBit repeats them), which leaves every membership test's answer the same.
operationId: get_blindbit_filter
parameters:
- in: path
name: kind
required: true
schema:
$ref: '#/components/schemas/BlindbitFilterKind'
style: simple
- in: path
name: height
required: true
schema:
$ref: '#/components/schemas/Height'
style: simple
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/BlindbitFilter'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'404':
description: Resource not found
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/spent-index/{height}:
get:
tags:
- Silent Payments
summary: Spent index
description: 'The block''s spends of Taproot outputs, each the first 8 bytes of `sha256(txid ‖ vout ‖ block hash)` in hex (the txid and this block''s hash in internal byte order, the vout little-endian): a wallet hashes its own outpoints to find which this block spends. Always an object, even when empty (BlindBit then answers `[]`, which spdk can''t read).'
operationId: get_blindbit_spent_index
parameters:
- in: path
name: height
required: true
schema:
$ref: '#/components/schemas/Height'
style: simple
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/BlindbitSpentIndex'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'404':
description: Resource not found
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/utxos/{height}:
get:
tags:
- Silent Payments
summary: Taproot outputs
description: 'Every Taproot output of the block''s eligible transactions (those `tweak-index` lists), in block order, each marked spent or not as of the last indexed block. `block_height` and `timestamp` are the block''s (BlindBit sends 0 for the height, and for the time of spent outputs). An output whose key isn''t a point on the curve is left out: it can''t be a payment, and spdk refuses a whole block over one.'
operationId: get_blindbit_utxos
parameters:
- in: path
name: height
required: true
schema:
$ref: '#/components/schemas/Height'
style: simple
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/BlindbitUtxo'
'304':
description: 'Not modified: the request''s validator matches the current representation'
'404':
description: Resource not found
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
/blindbit/mainnet/forward-tx:
post:
tags:
- Silent Payments
summary: Broadcast transaction
description: 'Submits a raw transaction, `{"data": ""}`, to the node, as `POST /api/tx` does. Returns its txid as a JSON string. No responses are cached.'
operationId: post_blindbit_forward_tx
requestBody:
description: BlindBit's transaction submission body.
content:
application/json:
schema:
$ref: '#/components/schemas/ForwardTx'
required: true
responses:
'400':
description: Invalid request parameters
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'415':
description: 'Expected request with `Content-Type: application/json`'
content:
text/plain:
schema:
type: string
'422':
description: Failed to deserialize the JSON body into the target type
content:
text/plain:
schema:
type: string
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Txid'
'413':
description: Request body too large
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Internal server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'503':
description: Service temporarily unavailable
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'504':
description: Request deadline exceeded
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
x-mcp-ignore: true
components:
schemas:
Sats:
description: An amount in satoshis (100,000,000 to a bitcoin).
type: integer
format: uint64
minimum: 0
examples:
- 0
- 546
- 10000
- 100000000
- 2100000000000000
SpentOutputHash:
description: 'A spend of a Taproot output as BlindBit''s light clients test for it: the first 8 bytes of
`sha256(txid ‖ vout ‖ block hash)`, the txid and the spending block''s hash in internal
byte order, the vout little-endian.'
type: string
Timestamp:
description: A Unix timestamp, in seconds.
type: integer
format: uint32
minimum: 0
examples:
- 1231006505
- 1672531200
- 1713571200
- 1743631892
- 1759000868
ErrorType:
description: 'Error category, following the HTTP status: `invalid_request` (4xx other than 404),
`not_found` (404), `unavailable` (503; `Retry-After` when transient), `timeout` (504), `internal`
(other 5xx).'
type: string
enum:
- invalid_request
- not_found
- unavailable
- timeout
- internal
Txid:
description: 'A transaction ID: its hash.'
type: string
examples:
- 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
- 2bb85f4b004be6da54f766c17c1e855187327112c231ef2ff35ebad0ea67c69e
- 9a0b3b8305bb30cacf9e8443a90d53a76379fb3305047fdeaa4e4b0934a2a1ba
pattern: ^[0-9a-f]{64}$
Vout:
description: 'Index of the output being spent in the previous transaction (coinbase inputs: 4294967295)'
type: integer
format: uint32
minimum: 0
examples:
- 0
- 1
- 2
- 5
- 10
ForwardTx:
description: BlindBit's transaction submission body.
type: object
properties:
data:
description: The raw transaction, hexadecimal.
type: string
required:
- data
BlindbitFilter:
description: A BIP158 Golomb-coded set (the basic filters' parameters, keyed by the block hash).
type: object
properties:
block_hash:
$ref: '#/components/schemas/BlockHash'
block_height:
$ref: '#/components/schemas/Height'
data:
description: 'The filter: the element count, then the coded deltas.'
allOf:
- $ref: '#/components/schemas/Hex'
filter_type:
description: Always 4, BlindBit's Taproot-only filters.
type: integer
format: uint8
minimum: 0
maximum: 255
required:
- block_hash
- block_height
- data
- filter_type
BlindbitInfo:
description: What the server serves.
type: object
properties:
network:
description: 'Bitcoin Core''s chain name: `main`.'
type: string
height:
description: The last indexed block.
allOf:
- $ref: '#/components/schemas/Height'
tweaks_only:
description: 'Whether only tweaks are served: `false`, filters and UTXOs are too.'
type: boolean
tweaks_full_basic:
description: 'Whether the full tweak index is served without dust limits: `false`, it takes them.'
type: boolean
tweaks_full_with_dust_filter:
description: 'Whether the full tweak index takes a dust limit: `true`.'
type: boolean
tweaks_cut_through_with_dust_filter:
description: 'Whether cut-through tweaks (of transactions with an unspent Taproot output) take a dust
limit: `true`.'
type: boolean
required:
- network
- height
- tweaks_only
- tweaks_full_basic
- tweaks_full_with_dust_filter
- tweaks_cut_through_with_dust_filter
ErrorCode:
type: string
enum:
- not_found
- invalid_address
- invalid_network
- unsupported_type
- no_series
- series_unsupported_index
- weight_exceeded
- too_many_utxos
- limit_exceeded
- unknown_after_txid
- unknown_address
- unknown_txid
- unknown_pool
- out_of_range
- unindexable_date
- no_data
- series_not_found
- mempool_not_available
- state_updating
- internal_error
- bad_request
- overloaded
- timeout
- method_not_allowed
BlindbitFilterKind:
description: Which of a block's two filters.
oneOf:
- description: Its new Taproot output keys.
type: string
const: new-utxos
- description: Its spends of Taproot outputs.
type: string
const: spent
Hex:
description: Hex-encoded data as a JSON string.
type: string
pattern: ^([0-9a-f]{2})*$
ErrorBody:
description: The JSON body of every API error (`application/problem+json`).
type: object
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
required:
- error
BlindbitBlockHash:
description: A block's hash.
type: object
properties:
block_hash:
$ref: '#/components/schemas/BlockHash'
required:
- block_hash
ErrorDetail:
type: object
properties:
type:
description: Error category, following the HTTP status
allOf:
- $ref: '#/components/schemas/ErrorType'
code:
description: Machine-readable error code
allOf:
- $ref: '#/components/schemas/ErrorCode'
message:
description: Human-readable description
type: string
doc_url:
description: Link to API documentation
type: string
format: uri-reference
required:
- type
- code
- message
- doc_url
Height:
description: 'A block height: how many blocks came before it.'
type: integer
format: uint32
minimum: 0
examples:
- 0
- 210000
- 420000
- 840000
BlindbitBlockHeight:
description: The last indexed block's height.
type: object
properties:
block_height:
$ref: '#/components/schemas/Height'
required:
- block_height
BlockHash:
description: 'Double-SHA256 block-header hash, serialized in Bitcoin''s conventional
hexadecimal byte order.'
type: string
examples:
- 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
- 0000000000000000000320283a032748cef8227873ff4872689bf23f1cda83a5
pattern: ^[0-9a-f]{64}$
BlindbitSpentIndex:
description: A block's spends of Taproot outputs.
type: object
properties:
block_hash:
$ref: '#/components/schemas/BlockHash'
data:
type: array
items:
$ref: '#/components/schemas/SpentOutputHash'
required:
- block_hash
- data
BlindbitUtxo:
description: A Taproot output of an eligible transaction.
type: object
properties:
txid:
$ref: '#/components/schemas/Txid'
vout:
$ref: '#/components/schemas/Vout'
value:
$ref: '#/components/schemas/Sats'
scriptpubkey:
description: Its script, `OP_1` and a 32-byte push of the output key.
allOf:
- $ref: '#/components/schemas/Hex'
block_height:
$ref: '#/components/schemas/Height'
block_hash:
$ref: '#/components/schemas/BlockHash'
timestamp:
description: The block's header time.
allOf:
- $ref: '#/components/schemas/Timestamp'
spent:
description: Whether a published block spends it.
type: boolean
required:
- txid
- vout
- value
- scriptpubkey
- block_height
- block_hash
- timestamp
- spent
Tweak:
description: 'A BIP352 silent payments tweak, `input_hash·A`: the compressed point a wallet multiplies by
its scan key for the secret it shares with the transaction.'
type: string