Skip to main content
GET
/
api
/
v1
/
developer
/
bitcoin
/
raw
/
blocks
/
{block_number}
Get Block
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

Successful Response

Bitcoin block entity.

hash
string
required
Maximum length: 66
timestamp
string<date-time> | null
number
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
confirmations
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
version
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
merkle_root
string | null
Maximum length: 66
median_time
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
nonce
string | null
Maximum length: 44
bits
string | null
Maximum length: 44
difficulty
string | null
chainwork
string | null
transaction_count
integer | null
Required range: -2147483648 <= x <= 2147483647
previous_blockhash
string | null
Maximum length: 66
next_blockhash
string | null
Maximum length: 66
stripped_size
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
size
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
weight
integer | null
Required range: -9223372036854776000 <= x <= 9223372036854776000
is_reorg
boolean | null
fetched_at
string<date-time> | null
I