Skip to main content

Documentation Index

Fetch the complete documentation index at: https://beta.docs.sqd.dev/llms.txt

Use this file to discover all available pages before exploring further.

Full UTXO history: blocks, transactions, inputs (with prevout data), and outputs.
PropertyValue
Network IDbitcoin-mainnet
Real-timeYes

Endpoint

https://portal.sqd.dev/datasets/bitcoin-mainnet

Quick start

curl --compressed -X POST \
  'https://portal.sqd.dev/datasets/bitcoin-mainnet/stream' \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "bitcoin",
    "fromBlock": 0,
    "toBlock": 100,
    "fields": {
      "block": { "number": true, "timestamp": true },
      "transaction": { "hash": true, "size": true }
    },
    "transactions": [{}]
  }'

Schema

FieldTypeDescription
numberintegerBlock height
hashstringBlock hash
parentHashstringParent block hash
timestampintegerBlock timestamp (Unix)
merkleRootstringMerkle root
sizeintegerTotal block size (bytes)
weightintegerBlock weight (BIP 141)
FieldTypeDescription
transactionIndexintegerIndex in the block
txidstringTransaction ID
hashstringTx hash (witness-aware)
sizeintegerTotal size (bytes)
vsizeintegerVirtual size
weightintegerWeight
versionintegerTx version
locktimeintegerEarliest time/height for inclusion
FieldTypeDescription
transactionIndexintegerParent transaction index
inputIndexintegerIndex of this input
txidstringTx ID of the spent output
voutintegerIndex of the spent output
scriptSigHexstringScriptSig in hex
prevoutValuenumberValue of the spent output (BTC)
prevoutScriptPubKeyAddressstringAddress of the spent output
FieldTypeDescription
transactionIndexintegerParent transaction index
outputIndexintegerIndex of this output
valuenumberValue (BTC)
scriptPubKeyHexstringScriptPubKey in hex
scriptPubKeyTypestringOutput type
scriptPubKeyAddressstringOutput address

Reference

API Reference

Field definitions and query syntax

Portal Migration

Migrate from v2 archives to Portal