Block Timestamp

Get the closest block number to a given timestamp on a specific chain

get/v4/block-timestamp/block

Request

  • Base URL: https://api.merkl.xyz (the document declares no server; this is the origin it was published from)
  • URL: https://api.merkl.xyz/v4/block-timestamp/block
  • Auth: apiKey (a scheme the document does not define)

Query parameters

chainIdnumber required

Chain ID

string integer required
OR
integer required

Unix timestamp

Response

Response for status 200

blockNumbernumber required

Closest block number

Changes

    • breaking

      query request parameter timestamp list-of-types was narrowed by removing types number

    • warning

      for the query request parameter timestamp, the max was set to 9007199254740991.00

    • warning

      for the query request parameter timestamp, the min was set to 0.00

    • info

      for the query request parameter timestamp, the type was generalized from number to no type