GET/v0/blocks/{block_selector}/timestamp

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/morpho/v0/blocks/{block_selector}/timestampCache cached 15s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Resolve block hash and Unix timestamp for a '<chain_id>:<block_number>' selector.

Try this endpoint

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/morpho/v0/blocks/1:21000000/timestamp"

Parameters

nameintypedescription
block_selectorpathstrrequiredBlock selector '<chain_id>:<block_number>'.
example: 1:21000000

Response

type: object
pagination: none
sample: {
  "data": "object"
}