Return bounded factual eth_estimateGas units and recent eth_feeHistory execution-fee ev…
Return bounded factual eth_estimateGas units and recent eth_feeHistory execution-fee evidence for one unsigned Ethereum or Base transaction. Not execution, signing, custody, trading, or a guaranteed final cost. Call when you need point-in-time gas units and r…
by api.agentmercantile.com · discovered, not yet claimed by its owner · updated 2026-10-10
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Return bounded factual eth_estimateGas units and recent eth_feeHistory execution-fee evidence for one unsigned Ethereum or Base transaction. Not execution, signing, custody, trading, or a guaranteed final cost. Call when you need point-in-time gas units and recent execution-fee context before signing or submitting.
Tags: transaction-gas · gas-estimate · fee-history · unsigned-preflight · evm-gas · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-10
{
"chain": "eip155:8453",
"data": "0x",
"to": "0x0000000000000000000000000000000000000001",
"value_wei": "0"
}{
"chain": {
"caip2": "eip155:8453",
"chain_id": 8453,
"name": "base"
},
"fee_history": {
"block_count": 5,
"newest_block": "latest"
},
"gas_estimate": {
"gas_units": "21000"
},
"illustrative_execution_fees": {
"covers": "l2_execution_fee_only",
"guaranteed_final_cost": false,
"kind": "illustrative_execution_fee_observations",
"recommendation": false
},
"limitations": [
"Point-in-time gas evidence, not a guaranteed final cost or total transaction cost."
],
"machine": "VM06",
"methodology_version": "transaction-gas-preflight-0.1.0",
"request_shape": {
"calldata_bytes": 0,
"has_from": false,
"value_nonzero": false
},
"status": "OK"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/29146.jsonfor the price and payment options. - Pay. Call
GET https://api.agentmercantile.com/v1/transaction-gas-preflight. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 3 calls · 3 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0xdb7b2b54f80479826222749a2ea73a8acc306e1e | 60s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xdb7b2b54f80479826222749a2ea73a8acc306e1e",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 60
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"additionalProperties": true,
"properties": {
"chain": {
"type": "object"
},
"fee_history": {
"description": "Recent eth_feeHistory execution-fee evidence.",
"type": [
"object",
"null"
]
},
"gas_estimate": {
"description": "eth_estimateGas units when estimable.",
"type": [
"object",
"null"
]
},
"illustrative_execution_fees": {
"description": "Illustrative L2 execution-fee observations, not a guaranteed final cost.",
"type": [
"object",
"null"
]
},
"limitations": {
"items": {
"type": "string"
},
"type": "array"
},
"machine": {
"enum": [
"VM06"
],
"type": "string"
},
"methodology_version": {
"enum": [
"transaction-gas-preflight-0.1.0"
],
"type": "string"
},
"request_shape": {
"type": "object"
},
"status": {
"enum": [
"OK",
"PARTIAL",
"UNESTIMABLE",
"HOLD"
],
"type": "string"
}
},
"required": [
"status",
"machine",
"methodology_version",
"chain",
"gas_estimate",
"limitations"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"chain": {},
"fee_history": {},
"gas_estimate": {},
"illustrative_execution_fees": {},
"limitations": [
"string"
],
"machine": "VM06",
"methodology_version": "transaction-gas-preflight-0.1.0",
"request_shape": {},
"status": "OK"
},
"type": "string"
}Examples
curl "https://api.agentmercantile.com/v1/transaction-gas-preflight"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://api.agentmercantile.com/v1/transaction-gas-preflight");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://api.agentmercantile.com/v1/transaction-gas-preflight")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.agentmercantile.com
- Endpoint
- https://api.agentmercantile.com/v1/transaction-gas-preflight
- Machine-readable
/resources/29146.json