Bitcoin REST API

The Bitcoin REST API is Bitcoin Core's own HTTP interface, served directly by the node. Each endpoint is a path under /rest/, takes its arguments in the path rather than a query string, and ends with the response format. It is read-only: it reads blocks, transactions, outpoints, the mempool, and consensus state.

This is the node's REST interface, not a block explorer API and not Blockbook. It has no address index, so it cannot answer "what is the balance of this address" or "what are the unspent outputs of this address". Those queries belong on the Blockbook add-on, which maintains that index separately.

Base URL

bashhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/

The same access token also serves JSON-RPC at the root of the endpoint. The two are different shapes over one endpoint: GET a /rest/ path, or POST a JSON-RPC body to /. Blockbook is the exception — it is a separate add-on with its own token and URL.

Response Formats

Every path ends with a format suffix:

SuffixContent typeUse
.jsonapplication/jsonDecoded output, as documented on each page
.hextext/plainThe object serialized and hex-encoded
.binapplication/octet-streamThe object serialized as raw bytes

.hex and .bin apply to blocks, headers, and transactions. .bin is the most compact way to pull a block for local parsing.

Endpoints

EndpointDescription
/rest/chaininfo.jsonChain height, best block, difficulty, and sync progress
/rest/blockhashbyheight/{height}.jsonThe block hash at a given height
/rest/block/notxdetails/{hash}.jsonBlock header fields plus the list of transaction ids
/rest/block/{hash}.jsonBlock with every transaction decoded in full
/rest/headers/{count}/{hash}.jsonA run of block headers walking forward from a block
/rest/tx/{txid}.jsonA transaction, decoded
/rest/getutxos/{txid}-{n}.jsonWhether given outpoints are unspent
/rest/mempool/info.jsonMempool size, memory usage, and fee floors
/rest/mempool/contents.jsonEvery mempool transaction with fee and ancestry detail
/rest/deploymentinfo.jsonActivation state of each consensus soft fork

Quick check

This request returns the node's chain state and confirms the endpoint is configured correctly:

bashcurl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/rest/chaininfo.json'

What this interface cannot do

NeedWhy REST cannotUse instead
Address balance, history, or UTXOsThe node keeps no address indexBlockbook api/v2/address and api/v2/utxo
Broadcasting a transactionThe REST interface is read-onlyJSON-RPC sendrawtransaction, or Blockbook api/v2/sendtx
A transaction's fee or confirmationsrest/tx returns neitherJSON-RPC getrawtransaction with verbosity 2
Fee estimatesNot exposed over RESTJSON-RPC estimatesmartfee
Subscriptions to new blocks or addressesREST is request/response onlyBlockbook WebSocket

Notes

  • Amounts are in BTC as decimals, not satoshis. Parsing them as floating-point numbers loses precision. Blockbook reports integer satoshi strings instead.
  • Arguments go in the path, not the query string, and the format suffix is required.
  • Responses can be very large. A full block runs to megabytes, and mempool/contents larger still. Prefer block/notxdetails and mempool/info where they will do.

Support