get
/v4/block-timestamp/bounds
Get the closest lower and upper bound blocks for a given timestamp from BlockTimestampMapping
Query parameters
chainIdnumberrequired
timestampnumberrequired
Responses
200Response for status 200
Schema
object
lowerobject | nullrequiredClosest block with timestamp <= target
blockNumbernumberBlock numbertimestampnumberUnix timestampupperobject | nullrequiredClosest block with timestamp >= target
blockNumbernumberBlock numbertimestampnumberUnix timestampexactMatchbooleanrequired
True when lower and upper are the same blockExample
{
"lower": {
"blockNumber": 0,
"timestamp": 0
},
"upper": {
"blockNumber": 0,
"timestamp": 0
},
"exactMatch": false
}get
https://api.merkl.xyz/v4/block-timestamp/boundscurl -X GET "https://api.merkl.xyz/v4/block-timestamp/bounds"