Api Endpoint

Agent Mercantile

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.

Open interactive test console

Offering

Provider
api.agentmercantile.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.agentmercantile.com/v1/transaction-gas-preflight
MIME type
Not provided
First seen
2026-10-16T01:50:10.647Z
Last seen
Tags
transaction-gas, gas-estimate, fee-history, unsigned-preflight, evm-gas

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0xdb7b2b54f80479826222749a2ea73a8acc306e1e"
  }
]

Observed health

Status
Healthy
Latest latency
102 ms
Average latency
303 ms
HTTP status
200
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "properties": {
        "chain": {
          "description": "Analysis chain only. Payment remains Base eip155:8453.",
          "enum": [
            "eip155:1",
            "eip155:8453"
          ],
          "type": "string"
        },
        "data": {
          "description": "Optional 0x-prefixed even-length hex calldata. Default 0x. Maximum 8192 bytes. Request body maximum 20480 bytes.",
          "maxLength": 16386,
          "pattern": "^0x(?:[0-9a-fA-F]{2})*$",
          "type": "string"
        },
        "from": {
          "description": "Optional 0x-prefixed 20-byte sender used only as an eth_estimateGas field. No ownership is implied.",
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        },
        "to": {
          "description": "Required 0x-prefixed 20-byte destination. Contract creation is not supported.",
          "pattern": "^0x[0-9a-fA-F]{40}$",
          "type": "string"
        },
        "value_wei": {
          "description": "Optional unsigned base-10 integer string in the uint256 range. Default 0. JSON Schema cannot express the full uint256 upper bound; runtime validation rejects values above 2^256-1.",
          "pattern": "^(0|[1-9][0-9]*)$",
          "type": "string"
        }
      },
      "required": [
        "chain",
        "to"
      ],
      "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 schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "chain": {
              "description": "Analysis chain only. Payment remains Base eip155:8453.",
              "enum": [
                "eip155:1",
                "eip155:8453"
              ],
              "type": "string"
            },
            "data": {
              "description": "Optional 0x-prefixed even-length hex calldata. Default 0x. Maximum 8192 bytes. Request body maximum 20480 bytes.",
              "maxLength": 16386,
              "pattern": "^0x(?:[0-9a-fA-F]{2})*$",
              "type": "string"
            },
            "from": {
              "description": "Optional 0x-prefixed 20-byte sender used only as an eth_estimateGas field. No ownership is implied.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "to": {
              "description": "Required 0x-prefixed 20-byte destination. Contract creation is not supported.",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "value_wei": {
              "description": "Optional unsigned base-10 integer string in the uint256 range. Default 0. JSON Schema cannot express the full uint256 upper bound; runtime validation rejects values above 2^256-1.",
              "pattern": "^(0|[1-9][0-9]*)$",
              "type": "string"
            }
          },
          "required": [
            "chain",
            "to"
          ],
          "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": {
          "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"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}