Get block by hash or height
Authorizations
API key (programmatic access — recommended)
Send your API key in the X-Api-Key header. Keys start with nxs_ and are
created in the dashboard (or via POST /api/keys with a session JWT).
Each key is scoped to one chain and one network (for example
cardano-mainnet), fixed at creation time. It cannot query a different network
on the same chain, and it cannot query a different chain at all. A mismatched
network parameter returns 400 Network Mismatch. Create one key per chain
and network under the same account.
This is the credential most integrations should use.
Path Parameters
^([a-fA-F0-9]{64}|[0-9]{1,8})$Query Parameters
CARDANO_MAINNET, CARDANO_PREPROD, CARDANO_PREVIEW, APEX_PRIME_MAINNET, APEX_VECTOR_MAINNET, APEX_VECTOR_TESTNET, MIDNIGHT_MAINNET, MIDNIGHT_PREPROD, MIDNIGHT_PREVIEW, BITCOIN_MAINNET, BITCOIN_TESTNET4 Response
OK
Bitcoin block
Block hash
Block height
Block timestamp (epoch seconds)
Median time past (epoch seconds)
Number of transactions in this block
Block size in bytes
Stripped (witness-stripped) size in bytes
Block weight (BIP141)
Block version
Merkle root
Nonce
Difficulty bits (compact target)
Difficulty
Chainwork as hex
Hash of the previous block
Hash of the next block, if any
Number of confirmations