curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "ots_getHeaderByNumber",
"params": [
1000
],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x3e8",
"hash": "0xe8399bf41516f5ca663c79bc30db02b4989385c2f3a96f42958dea5753cbf4a9",
"parentHash": "0x7c8f6a0e4d3b2a1c9e5f8b7d4a6c3e9f2b8d5a7c1e4f9b3a6d8c2e5f7a9b4c6d",
"timestamp": "0x6734e8d0"
}
}
Retrieve block header information by block number on Hyperliquid EVM. Provides lightweight block data access for block explorers.
curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "ots_getHeaderByNumber",
"params": [
1000
],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x3e8",
"hash": "0xe8399bf41516f5ca663c79bc30db02b4989385c2f3a96f42958dea5753cbf4a9",
"parentHash": "0x7c8f6a0e4d3b2a1c9e5f8b7d4a6c3e9f2b8d5a7c1e4f9b3a6d8c2e5f7a9b4c6d",
"timestamp": "0x6734e8d0"
}
}
ots_getHeaderByNumber
JSON-RPC method retrieves block header information by block number on the Hyperliquid EVM blockchain. This Otterscan-specific method provides a lightweight way to fetch block headers without retrieving full block data, making it efficient for block explorer operations.
number
— the block numberhash
— the block hashparentHash
— the parent block hashnonce
— proof-of-work nonce (always 0x0000000000000000 for PoS)sha3Uncles
— SHA3 hash of the uncles datalogsBloom
— bloom filter for the logstransactionsRoot
— root of the transaction triestateRoot
— root of the final state triereceiptsRoot
— root of the receipts trieminer
— address of the beneficiarydifficulty
— difficulty for this blocktotalDifficulty
— total difficulty of the chain until this blockextraData
— extra data field of this blocksize
— size of this block in bytesgasLimit
— maximum gas allowed in this blockgasUsed
— total gas used by all transactionstimestamp
— Unix timestamp of the blockmixHash
— mix hash for the blockbaseFeePerGas
— base fee per gas (post-EIP-1559)curl -X POST https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "ots_getHeaderByNumber",
"params": [1000],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x3e8",
"hash": "0xe8399bf41516f5ca663c79bc30db02b4989385c2f3a96f42958dea5753cbf4a9",
"parentHash": "0x7c8f6a0e4d3b2a1c9e5f8b7d4a6c3e9f2b8d5a7c1e4f9b3a6d8c2e5f7a9b4c6d",
"nonce": "0x0000000000000000",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot": "0x9f3c6b0d8e5a2d1f7c9e4b3a8d6c5e2f9a7b4c8d1e6f3a5b7d9c2e4f6a8b3c5d",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"miner": "0x0000000000000000000000000000000000000000",
"difficulty": "0x0",
"totalDifficulty": "0x0",
"extraData": "0x",
"size": "0x220",
"gasLimit": "0x1c9c380",
"gasUsed": "0x0",
"timestamp": "0x6734e8d0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"baseFeePerGas": "0x7"
}
}
ots_getHeaderByNumber
method is essential for:
Successful response with block header data
The response is of type object
.