Paid API · $0.05 per call
Preflight with decoded effects
The full preflight decodes what the simulation implies for balances: what leaves your wallet, what arrives, which allowance is set and to whom, and the swap path in and out. It is the version to use when the amount matters.
Question it answers: Exactly which balances change if I sign this?
What you send
| Parameter | Example | Meaning |
|---|---|---|
to | 0x4200000000000000000000000000000000000006 | target contract |
data | 0x | calldata to decode |
from | 0x0000000000000000000000000000000000000001 | the signing wallet |
value | 0 | native value in wei (optional) |
assume | allow | state assumption for the simulation |
What you get
- Every balance change the calldata implies, labelled expected.
- Transfers and allowances with the spender named.
- The swap path in and out, including wrap and unwrap.
When not to buy it
- Balance changes are decoded from the calldata and the simulation, never presented as settled facts.
- Rebasing tokens, fee-on-transfer tokens and MEV can change what actually lands.
- It cannot price the trade for you; it reports what the call moves.
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/full
# 402 → pay 0.05 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
Is "expected" the same as "guaranteed"?
No. It is what the decoded call implies at the simulated state. Slippage, fees and a different block can change the settled result.
Why does this cost more?
It does more work: full decoding plus the balance-diff simulation. The price difference is in the manifest and the 402 challenge.