Skip to content
LogoLogo

Blocks

Node API v1.0.0 (Arrekta Node API).

MethodPathSummary
GET/v1/blocksList Blocks
GET/v1/blocks/{block_id}Get Block
GET/v1/blocks/{block_id}/rawGet Block Raw
GET/v1/blocks/tipBlock Tip

GET /v1/blocks

List Blocks.

curl -s http://127.0.0.1:28332/v1/blocks

Parameters

NameInTypeRequiredNotes
limitqueryintegernomin 1, max 100, default 20
before_heightqueryinteger | nullno

Response 200 (application/json): BlockPage

FieldTypeRequiredNotes
itemsBlockSummary[]yes
next_before_heightinteger | nullyesmay be null

Unknown fields may be added within v1; clients must ignore them.

Errors 400, 404, 409, 422, 429: application/problem+json Problem with a stable code.

operationId: list_blocks_v1_blocks_get

GET /v1/blocks/{block_id}

Get Block.

curl -s http://127.0.0.1:28332/v1/blocks/<block_id>

Parameters

NameInTypeRequiredNotes
block_idpathstringyes
txsquerystringnopattern `^(none

Response 200 (application/json): BlockDetail

FieldTypeRequiredNotes
auxpowAuxPowSummary | nullnomay be null
bitsstringyes
chainworkstringyes
confirmationsintegeryes
difficultynumberyes
finalboolean | nullnoat or below the latest signed checkpoint. may be null
hashstringyes
heightintegeryes
in_active_chainbooleanyes
merkle_rootstringyes
next_hashstring | nullnomay be null
noncestringyes
prev_hashstringyes
sizeintegeryes
statusstringyes
timestampintegeryes
tx_countintegeryes
txidsstring[] | nullnomay be null
txsTx[] | nullnomay be null
versionintegeryes
witness_rootstringyes

Unknown fields may be added within v1; clients must ignore them.

Errors 400, 404, 409, 422, 429: application/problem+json Problem with a stable code.

operationId: get_block_v1_blocks__block_id__get

GET /v1/blocks/{block_id}/raw

Get Block Raw.

curl -s http://127.0.0.1:28332/v1/blocks/<block_id>/raw

Parameters

NameInTypeRequiredNotes
block_idpathstringyes

Response 200 (application/json): RawHex

FieldTypeRequiredNotes
hashstring | nullnomay be null
hexstring | nullyesmay be null
txidstring | nullnomay be null

Unknown fields may be added within v1; clients must ignore them.

Errors 400, 404, 409, 422, 429: application/problem+json Problem with a stable code.

operationId: get_block_raw_v1_blocks__block_id__raw_get

GET /v1/blocks/tip

Block Tip.

curl -s http://127.0.0.1:28332/v1/blocks/tip

Response 200 (application/json): BlockDetail

FieldTypeRequiredNotes
auxpowAuxPowSummary | nullnomay be null
bitsstringyes
chainworkstringyes
confirmationsintegeryes
difficultynumberyes
finalboolean | nullnoat or below the latest signed checkpoint. may be null
hashstringyes
heightintegeryes
in_active_chainbooleanyes
merkle_rootstringyes
next_hashstring | nullnomay be null
noncestringyes
prev_hashstringyes
sizeintegeryes
statusstringyes
timestampintegeryes
tx_countintegeryes
txidsstring[] | nullnomay be null
txsTx[] | nullnomay be null
versionintegeryes
witness_rootstringyes

Unknown fields may be added within v1; clients must ignore them.

Errors 400, 404, 409, 422, 429: application/problem+json Problem with a stable code.

operationId: block_tip_v1_blocks_tip_get

Schemas

AuxPowSummary

Merged mining (§9.6): the parent-chain block whose work secured this block.

FieldTypeRequiredNotes
chain_indexintegeryesthis chain's slot in the merged-mining tree
chain_merkle_sizeintegeryesnumber of slots in the merged-mining tree
coinbase_branchintegeryesMerkle branch length from the parent coinbase to its root
coinbase_sizeintegeryes
parent_hashstringyesparent-chain block hash, as committed in the AuxPoW
parent_timeintegeryestimestamp in the parent block header

Unknown fields may be added within v1; clients must ignore them.

BlockDetail

FieldTypeRequiredNotes
auxpowAuxPowSummary | nullnomay be null
bitsstringyes
chainworkstringyes
confirmationsintegeryes
difficultynumberyes
finalboolean | nullnoat or below the latest signed checkpoint. may be null
hashstringyes
heightintegeryes
in_active_chainbooleanyes
merkle_rootstringyes
next_hashstring | nullnomay be null
noncestringyes
prev_hashstringyes
sizeintegeryes
statusstringyes
timestampintegeryes
tx_countintegeryes
txidsstring[] | nullnomay be null
txsTx[] | nullnomay be null
versionintegeryes
witness_rootstringyes

Unknown fields may be added within v1; clients must ignore them.

BlockPage

FieldTypeRequiredNotes
itemsBlockSummary[]yes
next_before_heightinteger | nullyesmay be null

Unknown fields may be added within v1; clients must ignore them.

BlockSummary

FieldTypeRequiredNotes
bitsstringyes
difficultynumberyes
hashstringyes
heightintegeryes
merkle_rootstringyes
noncestringyes
prev_hashstringyes
sizeintegeryes
timestampintegeryes
tx_countintegeryes
versionintegeryes
witness_rootstringyes

Unknown fields may be added within v1; clients must ignore them.

Freeze

FieldTypeRequiredNotes
addressstring | nullyesmay be null
assetstringyes
authority_forstring | nullnomay be null
control_forstring | nullnomay be null
decimalsintegeryes
frozenbooleanyes
tickerstring | nullyesmay be null

Unknown fields may be added within v1; clients must ignore them.

Issuance

FieldTypeRequiredNotes
amountstringyes
assetstringyes
authority_assetstring | nullyesmay be null
clawbackbooleanyes
control_assetstring | nullyesmay be null
decimalsintegeryes
freezablebooleanyes
max_supplystringyes
metadata_hashstringyes
mintablebooleanyes
namestringyes
tickerstringyes

Unknown fields may be added within v1; clients must ignore them.

Mint

FieldTypeRequiredNotes
amountstringyes
assetstringyes
authority_forstring | nullnomay be null
control_forstring | nullnomay be null
decimalsintegeryes
tickerstring | nullyesmay be null

Unknown fields may be added within v1; clients must ignore them.

RawHex

FieldTypeRequiredNotes
hashstring | nullnomay be null
hexstring | nullyesmay be null
txidstring | nullnomay be null

Unknown fields may be added within v1; clients must ignore them.

Tx

FieldTypeRequiredNotes
clawback_inputsinteger[]yes
coinbasebooleanyes
feestring | nullnomay be null
freezesFreeze[]yes
inputsTxInput[]yes
issuancesIssuance[]yes
lock_timeintegeryes
memostringyes
mintsMint[]yes
outputsTxOutput[]yes
sizeintegeryes
statusTxStatus | nullnomay be null
txidstringyes
valid_untilinteger | nullnomay be null
versionintegeryes
wtxidstringyes

Unknown fields may be added within v1; clients must ignore them.

TxInput

FieldTypeRequiredNotes
addressstring | nullnomay be null
amountstring | nullnomay be null
assetstring | nullnomay be null
decimalsinteger | nullnomay be null
sequenceintegeryes
tickerstring | nullnomay be null
txidstringyes
voutintegeryes

Unknown fields may be added within v1; clients must ignore them.

TxOutput

FieldTypeRequiredNotes
addressstring | nullyesmay be null
amountstringyes
assetstringyes
authority_forstring | nullnomay be null
burn_datastring | nullnomay be null
control_forstring | nullnomay be null
decimalsintegeryes
lockstringyesone of burn, pubkey_hash, multisig_hash, policy, reserved
nintegeryes
tickerstring | nullyesmay be null

Unknown fields may be added within v1; clients must ignore them.

TxStatus

FieldTypeRequiredNotes
block_hashstring | nullnomay be null
block_heightinteger | nullnomay be null
confirmationsinteger | nullnomay be null
confirmedbooleanyes
fee_per_kbinteger | nullnomay be null
finalboolean | nullnoconfirmed at or below the latest signed checkpoint: can never be reorganised. may be null
first_seeninteger | nullnomay be null
in_mempoolboolean | nullnomay be null
replaced_bystring | nullnoevicted from the mempool by this fee-bump replacement (kept for recent replacements). may be null

Unknown fields may be added within v1; clients must ignore them.