PeumeAPI

Finance & crypto

Get the closest block to a timestamp

Get the closest block to a timestamp

$0.0005 per call

Call it

curl https://api.peume.com/v1/call/get-the-closest-block-to-a-timestamp \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "chain": "your chain",
    "timestamp": 10
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: get-the-closest-block-to-a-timestamp.

Parameters

chainRequiredstring

Chain which you want to get the block from

timestampRequiredinteger

UNIX timestamp of the block you are searching for

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.