Block number, Sonic

$0.01 per call · failed calls are never charged · no account or API key needed

Latest block number and block details on Sonic, or any block by decimal number: hash, timestamp, transaction count, gas used and limit, base fee in gwei and producer. Use for timestamps and confirmation counts; for current fees use sonic_gas. A block that does not exist yet returns 404, uncharged.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Try it with your own inputs

Block number, or 'latest' (default)

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
numberstringBlock number, or 'latest' (default)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/sonic/block?number=latest"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/sonic/block?number=latest&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "chain": "Sonic",
  "chainId": 146,
  "number": 123456789,
  "hash": "0xabc…",
  "timestamp": "2026-10-18T12:00:00.000Z",
  "transactions": 154,
  "gasUsed": "21000000",
  "gasLimit": "30000000",
  "baseFeeGwei": "0.012",
  "miner": "0x…"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is sonic_block, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools