Skip to main content
GET
Get block by hash

Authorizations

X-Api-Key
string
header
required

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

hash
string
required
Required string length: 1 - 128
Pattern: ^[a-zA-Z0-9]+$

Query Parameters

network
enum<string>
Available options:
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

Block found

time
integer<int64>
height
integer<int64>
number
integer<int64>
hash
string
slot
integer<int64>
epoch
integer<int32>
era
string
epoch_slot
integer<int64>
slot_leader
string
size
integer<int32>
tx_count
integer<int32>
output
string
fees
string
block_vrf
string
op_cert
string
op_cert_counter
integer<int64>
op_cert_kes_period
integer<int64>
op_cert_sigma
string
previous_block
string
next_block
string
confirmations
integer<int32>
issuer_vkey
string
nonce_vrf
object
leader_vrf
object
vrf_result
object
block_body_hash
string
protocol_version
string
{key}
any