Paid API · $0.02 per call
Transaction preflight
Send the calldata you are about to sign and get back what the chain will do with it: who is called, who can spend, what moves, and one go / caution / no_go call. The point is to catch the expensive mistake before the signature, not after.
Question it answers: What will this transaction do before I sign it?
What you send
| Parameter | Example | Meaning |
|---|---|---|
to | 0x4200000000000000000000000000000000000006 | target contract |
data | 0x | calldata to simulate |
from | 0x0000000000000000000000000000000000000001 | the signing wallet |
value | 0 | native value in wei (optional) |
assume | allow | state assumption for the simulation |
What you get
- Target and spender checks against the allowed registry.
- On-chain simulation of the call and its expected effects.
- One verdict — go, caution or no_go — with the reason and the invalidation.
When not to buy it
- The simulation runs against the state at read time; a block later the same call can behave differently.
- It does not prove the counterparty is honest, only what the transaction does.
- Unlimited approvals and setApprovalForAll are flagged, not blocked; the decision stays with the signer.
How to call it
The route answers 402 with the price, the asset and the receiving address; pay with any x402 client on Base and repeat the call.
GET https://app.gtxagent.com/x402/preflight
# 402 → pay 0.02 USDC on Base (eip155:8453)
# retry with the X-PAYMENT header
The manifest is authoritative: /.well-known/x402. The full price list is /pricing.md.
Questions
Does it need my private key?
No. You send the target, calldata and the address that would sign. Nothing is signed or broadcast by GTXAgent.
What is the difference from the full variant?
This variant simulates the call. The full variant also decodes every expected balance change: transfers, allowances, the swap path, wrap and unwrap.