Get block timestamp

GET
/v0/blocks/{block-selector}/timestamp

The hash and unix timestamp of a block, identified by its number on a given chain.

Path Parameters

block-selector*string

Selector formatted as <chain_id>:<block_number>. Example: 1:19700000.

Format<chain_id>:<block_number>

Response Body

application/json

curl -X GET "https://example.com/v0/blocks/1:19700000/timestamp"
{  "data": {    "chain_id": 1,    "block_number": "string",    "block_hash": "string",    "timestamp": 1  }}