Api Endpoint

txpreflight

Preflight any Base transaction before you sign: does it revert, and what will it cost in gas. GET ?to=0x..&data=0x..&value=..&urgency=normal, or POST JSON. Also vets x402 sellers. $0.01 USDC per call on Base.

Open interactive test console

Offering

Provider
api.firstmention.uk
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.firstmention.uk/s/txpreflight/verify
MIME type
application/json
First seen
2026-10-26T21:37:17.077Z
Last seen
Tags
Base, X402, preflight, tx, simulation

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
262 ms
Average latency
508 ms
HTTP status
402
Last checked
Reachability
100% over 13 checks

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

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "properties": {
        "data": {
          "description": "Calldata hex, 0x-prefixed (optional).",
          "type": "string"
        },
        "from": {
          "description": "Sender 0x address (optional).",
          "type": "string"
        },
        "to": {
          "description": "Destination 0x address (required).",
          "type": "string"
        },
        "urgency": {
          "description": "Gas urgency (optional).",
          "enum": [
            "slow",
            "normal",
            "fast"
          ],
          "type": "string"
        },
        "value": {
          "description": "ETH value in wei (optional).",
          "type": "string"
        }
      },
      "required": [
        "to"
      ],
      "type": "object"
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "chain": {
          "type": "string"
        },
        "ok": {
          "type": "boolean"
        },
        "summary": {
          "type": "object",
          "properties": {
            "gasUnitsToSend": {
              "type": "string"
            },
            "wouldRevert": {
              "type": "boolean"
            }
          }
        },
        "verdict": {
          "type": "string"
        },
        "warnings": {
          "type": "array"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}