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

ParameterExampleMeaning
to0x4200000000000000000000000000000000000006target contract
data0xcalldata to simulate
from0x0000000000000000000000000000000000000001the signing wallet
value0native value in wei (optional)
assumeallowstate assumption for the simulation

What you get

When not to buy it

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.