Api Endpoint

GTXAgent Tx Preflight

What happens if I sign this transaction? Decode any Base call, check the target and the spender, reuse the token verdict, simulate it on-chain and return go / caution / no_go with every reason named. Pass assume=allowance to simulate a swap before the approval exists.

Open interactive test console

Offering

Provider
app.gtxagent.com
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://app.gtxagent.com/x402/preflight
MIME type
application/json
First seen
2026-11-16T17:01:50.966Z
Last seen
Tags
transaction simulation, preflight check, approval risk, base transaction, agent safety

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
552 ms
Average latency
532 ms
HTTP status
402
Last checked
Reachability
100% over 5 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"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "to": {
          "type": "string",
          "description": "Target contract or EOA (0x address)"
        },
        "data": {
          "type": "string",
          "description": "Hex calldata; empty means a native transfer"
        },
        "from": {
          "type": "string",
          "description": "Optional sender used for the simulation"
        },
        "value": {
          "type": "string",
          "description": "Optional native value in wei (decimal)"
        },
        "assume": {
          "type": "string",
          "enum": [
            "allowance"
          ],
          "description": "Simulate with max allowance when the sender has not approved yet"
        }
      },
      "required": [
        "to"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}