Data Structure Indexer API
accumulators
Health Check
remappers
Get block header by timestamp
Get block header by timestamp
GET
/
remappers
/
get-block-header-by-timestamp
curl --request GET \
--url https://rs-indexer.api.herodotus.cloud/remappers/get-block-header-by-timestamp
{
"block_header": {
"base_fee_per_gas": "<string>",
"block_hash": "<string>",
"block_number": 123,
"difficulty": "<string>",
"extra_data": "<string>",
"gas_limit": "<string>",
"gas_used": "<string>",
"logs_bloom": "<string>",
"miner": "<string>",
"mix_hash": "<string>",
"nonce": "<string>",
"parent_hash": "<string>",
"receipt_root": "<string>",
"sha3_uncles": "<string>",
"state_root": "<string>",
"timestamp": 123,
"transaction_root": "<string>",
"withdrawal_root": "<string>"
}
}
Query Parameters
Available options:
1
, 11155111
, 137
, 280
, MADARA_PRAGMA
, STARKNET
, SN_SEPOLIA
, 300
, 11155420
, 421614
, 4801
, 84532
, UNKNOWN
Response
200
application/json
Get blockheader by timestamp
curl --request GET \
--url https://rs-indexer.api.herodotus.cloud/remappers/get-block-header-by-timestamp
{
"block_header": {
"base_fee_per_gas": "<string>",
"block_hash": "<string>",
"block_number": 123,
"difficulty": "<string>",
"extra_data": "<string>",
"gas_limit": "<string>",
"gas_used": "<string>",
"logs_bloom": "<string>",
"miner": "<string>",
"mix_hash": "<string>",
"nonce": "<string>",
"parent_hash": "<string>",
"receipt_root": "<string>",
"sha3_uncles": "<string>",
"state_root": "<string>",
"timestamp": 123,
"transaction_root": "<string>",
"withdrawal_root": "<string>"
}
}