Transactions
Get Transaction
string
required
The transaction hash (txid) in hexadecimal format
enum
required
Output format:
bin, hex, or json- By default, only searches the mempool for unconfirmed transactions
- To query confirmed transactions, enable the transaction index:
txindex=1 - Returns
404if the transaction doesn’t exist
Blocks
Get Block
string
required
The block hash in hexadecimal format
enum
required
Output format:
bin, hex, or jsonThe 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
string
required
The block hash in hexadecimal format
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
string
required
The block hash in hexadecimal format
integer
required
Byte offset to start reading from
integer
required
Number of bytes to read
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
string
required
Starting block hash in hexadecimal format
integer
default:"5"
Number of headers to return (max: 2000)
Block Filters
Get Block Filter Headers
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)
Get Block Filter
string
required
Filter type (e.g.,
basic)string
required
Block hash in hexadecimal format
Block Hash Lookup
Get Block Hash by Height
integer
required
Block height (0 for genesis block)
Spent Transaction Outputs
Get Spent Outputs
string
required
Block hash in hexadecimal format
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
getblockchaininfo RPC):
Only supports JSON output format. See
getblockchaininfo RPC documentation for complete field descriptions.Get Deployment Info
string
Optional block hash to query deployment status at that block
Equivalent to the
getdeploymentinfo RPC. Only supports JSON format.UTXO Set Queries
Query UTXO Set
string
required
Transaction ID in hexadecimal format
integer
required
Output index (vout)
boolean
Include mempool in the query (optional path segment)
- Maximum 15 outpoints per request
- Follows BIP64 serialization format for binary/hex outputs
BIP64 Reference: Binary and hex formats follow BIP64 serialization.
Mempool
Get Mempool Info
Equivalent to the
getmempoolinfo RPC. Only supports JSON format.Get Mempool Contents
boolean
default:"true"
Include detailed transaction information
boolean
default:"false"
Include mempool sequence number (cannot be combined with verbose=true)
Availability: Query parameters for
verbose and mempool_sequence are available in Bitcoin Core v25.0 and later.Error Responses
All endpoints return appropriate HTTP status codes:
Example Error: