Nimiq
blockchain

Get block by hash

Tries to fetch a block given its hash. It has an option to include the transactions in the block, which defaults to false.

getBlockByHashrpc method

Parameters

hashstringrequired
includeBodybooleanrequired

Response fields

hashstring
sizenumber
batchnumber
epochnumber
networkstring
versionnumber
numbernumber
timestampnumber
parentHashstring
seedstring
extraDatanumber[]
stateHashstring
bodyHashstring
historyHashstring
transactionsany[]
typestring
equivocationProofsobject[]
interlinkstring[]
isElectionBlockboolean
justificationunknown
nextBatchInitialPunishedSetnumber[]
parentElectionHashstring
producerunknown
slotsany[]

Interactive playground

Try the method against a public RPC endpoint.

Copyright © 2026