Polygon PoS block
Fetch a block on Polygon PoS by decimal number, or the latest one when omitted: hash, timestamp, transaction count, gas used and limit, base fee in gwei and producer. Use for timestamps and confirmation counts; for current fees use polygon_gas. A block that does not exist yet returns 404, uncharged.
Inputs
| Name | Type | Description |
|---|---|---|
number | string | Block 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/polygon/block?number=latest"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/polygon/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, Monad, World Chain or Tempo) and retries.
Example result
{
"chain": "Polygon PoS",
"chainId": 137,
"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 polygon_block, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp