Skip to main content

Transactions

Get Transaction

Retrieve a transaction by its hash in binary, hexadecimal, or JSON format.
string
required
The transaction hash (txid) in hexadecimal format
enum
required
Output format: bin, hex, or json
Behavior:
  • By default, only searches the mempool for unconfirmed transactions
  • To query confirmed transactions, enable the transaction index: txindex=1
  • Returns 404 if the transaction doesn’t exist
Example:

Blocks

Get Block

Retrieve a complete block with full transaction details.
string
required
The block hash in hexadecimal format
enum
required
Output format: bin, hex, or json
Example:
The HTTP request and response are handled entirely in-memory. For very large blocks, consider using /rest/blockpart/ to retrieve partial data.

Get Block Without Transaction Details

Retrieve a block with only transaction hashes (no full transaction details).
string
required
The block hash in hexadecimal format
Example:
This endpoint is more efficient when you only need block metadata and transaction IDs without full transaction data. The option only affects JSON responses.

Get Block Part

Retrieve a specific byte range from a block’s raw data.
string
required
The block hash in hexadecimal format
integer
required
Byte offset to start reading from
integer
required
Number of bytes to read
Example:
Only supports bin and hex formats. Returns 404 if the block doesn’t exist or the byte range is invalid.

Block Headers

Get Block Headers

Retrieve a sequence of block headers starting from the specified block hash.
string
required
Starting block hash in hexadecimal format
integer
default:"5"
Number of headers to return (max: 2000)
Example:
Deprecated format (still supported): /rest/headers/<COUNT>/<BLOCK-HASH>.<format>This format has been deprecated since v24.0. Use the query parameter format instead.

Block Filters

Get Block Filter Headers

Retrieve block filter headers for BIP 157/158 compact block filters.
string
required
Filter type (e.g., basic for BIP 158 basic filters)
string
required
Starting block hash in hexadecimal format
integer
default:"5"
Number of filter headers to return (max: 2000)
Example:
Deprecated format: /rest/blockfilterheaders/<FILTERTYPE>/<COUNT>/<BLOCK-HASH>.<format> (deprecated since v24.0)

Get Block Filter

Retrieve the block filter for a specific block.
string
required
Filter type (e.g., basic)
string
required
Block hash in hexadecimal format
Example:

Block Hash Lookup

Get Block Hash by Height

Retrieve the block hash at a specific height in the best block chain.
integer
required
Block height (0 for genesis block)
Example:

Spent Transaction Outputs

Get Spent Outputs

Retrieve a collection of spent transaction outputs for all transactions in a block.
string
required
Block hash in hexadecimal format
Example:
Returns 404 if:
  • The block doesn’t exist
  • The block’s undo data is not available (e.g., genesis block, pruned blocks)

Blockchain Information

Get Chain Info

Retrieve various state information about blockchain processing. Example:
Response (equivalent to getblockchaininfo RPC):
Only supports JSON output format. See getblockchaininfo RPC documentation for complete field descriptions.

Get Deployment Info

Retrieve information about consensus rule deployments (soft forks) at the current chain tip or at a specific block.
string
Optional block hash to query deployment status at that block
Example:
Equivalent to the getdeploymentinfo RPC. Only supports JSON format.

UTXO Set Queries

Query UTXO Set

Query the UTXO set for specific outpoints.
string
required
Transaction ID in hexadecimal format
integer
required
Output index (vout)
boolean
Include mempool in the query (optional path segment)
Limitations:
  • Maximum 15 outpoints per request
  • Follows BIP64 serialization format for binary/hex outputs
Example:
JSON Response:
BIP64 Reference: Binary and hex formats follow BIP64 serialization.

Mempool

Get Mempool Info

Retrieve information about the memory pool. Example:
Response:
Equivalent to the getmempoolinfo RPC. Only supports JSON format.

Get Mempool Contents

Retrieve all transactions currently in the mempool.
boolean
default:"true"
Include detailed transaction information
boolean
default:"false"
Include mempool sequence number (cannot be combined with verbose=true)
Example:
Availability: Query parameters for verbose and mempool_sequence are available in Bitcoin Core v25.0 and later.
Incompatible Options: Cannot use verbose=true and mempool_sequence=true together. Set verbose=false when requesting mempool sequence values.

Error Responses

All endpoints return appropriate HTTP status codes: Example Error: