GET
/
api
/
v1
/
developer
/
bitcoin
/
raw
/
blocks
/
{block_number}
curl --request GET \
  --url https://api.allium.so/api/v1/developer/bitcoin/raw/blocks/{block_number} \
  --header 'X-API-KEY: <api-key>'
{
  "timestamp": "2023-11-07T05:31:56Z",
  "number": 0,
  "hash": "<string>",
  "confirmations": 0,
  "version": 0,
  "merkle_root": "<string>",
  "median_time": 0,
  "nonce": "<string>",
  "bits": "<string>",
  "difficulty": "<string>",
  "chainwork": "<string>",
  "transaction_count": -1,
  "previous_blockhash": "<string>",
  "next_blockhash": "<string>",
  "stripped_size": 0,
  "size": 0,
  "weight": 0,
  "is_reorg": true,
  "fetched_at": "2023-11-07T05:31:56Z"
}

Blocks are the building blocks of blockchains. A block contains transactions which will alter the state of the blockchain incrementally. Transaction within a block can only be executed one after the other and utxo movement is sequential based on the order of inputs and outputs within transactions and blocks. Learn more in the official Bitcoin documentation here.

Authorizations

X-API-KEY
string
header
required

Path Parameters

block_number
integer
required

Response

200
application/json

Successful Response

Bitcoin block entity.