Get Block by Hash or Number
Returns the block information by given hash or number.
Path parameters
hashOrNumberstringRequiredPattern:
Accepts both eth and hedera hash format or block number
^(\d{1,10}|(0x)?([A-Fa-f0-9]{64}|[A-Fa-f0-9]{96}))$Responses
200
OK
application/json
countintegerOptional
gas_usedinteger · int64 · nullableOptional
hapi_versionstring · nullableOptional
hashstringOptional
logs_bloomstring · nullableOptionalPattern:
A hex encoded 256-byte array with 0x prefix
^0x[0-9a-fA-F]{512}$namestringOptional
numberintegerOptional
previous_hashstringOptional
sizeinteger · nullableOptional
400
Invalid parameter
application/json
404
Not Found
application/json
get
/api/v1/blocks/{hashOrNumber}Last updated
Was this helpful?