Fetch an EVM block (latest or by number)
Fetch an EVM block (latest or by number). Given a chain and an optional block number returns block number, hash, parent hash, timestamp, transaction count, gas used/limit, base fee and miner. Omit the number for the current block height. For indexers, chain-tip monitoring, finality-tracking and block-explorer agents.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
893 msmedian answer time
$0.001listed price per call
$0.001price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/block
| Category | Market data |
|---|---|
| Provider host | agent-commerce-factory-jm.austriaeast.cloudapp.azure.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 3 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.001 | 893 ms |
Example input (from the provider)
{
"body": {
"chain": "ethereum"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"block": {
"description": "Block number; omit for the latest block.",
"minimum": 0,
"type": "integer"
},
"chain": {
"default": "ethereum",
"description": "EVM chain (ethereum, base, arbitrum, optimism, polygon, bsc).",
"type": "string"
}
},
"required": [],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"block": {
"properties": {
"baseFeePerGasWei": {
"type": [
"string",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"gasLimit": {
"type": [
"string",
"null"
]
},
"gasUsed": {
"type": [
"string",
"null"
]
},
"hash": {
"type": [
"string",
"null"
]
},
"miner": {
"type": [
"string",
"null"
]
},
"number": {
"type": [
"integer",
"null"
]
},
"parentHash": {
"type": [
"string",
"null"
]
},
"timestamp": {
"type": [
"string",
"null"
]
},
"timestampUnix": {
"type": [
"integer",
"null"
]
},
"txCount": {
"type": [
"integer",
"null"
]
}
},
"type": "object"
},
"chain": {
"type": "string"
},
"economics": {
"properties": {
"sellPriceUsd": {
"type": "number"
},
"upstreamCostUsdActual": {
"type": [
"number",
"null"
]
}
},
"type": "object"
},
"machine": {
"type": "string"
},
"route": {
"type": "string"
}
},
"required": [
"machine",
"route",
"block"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}