{"uid":"cap_-szLLi777gZnYD7czD5Gq","slug":"gateway-gti-preflight-transaction-analysis-service-2672e0c7","name":"Gateway GTI Preflight Transaction Analysis Service","description":"Gateway wallet API for separately configured Base Sepolia testnet or Base mainnet USDC. Source defaults disable payments; deployment configuration determines availability. Consult tip.json for current contribution terms and the endpoint response for current service availability. Paid services return asynchronous job receipts. Existing PayPal checkout remains on human service pages.","url":"https://gateway-wallet-payments.jerryrnapier.workers.dev/api/agent/v1/services/gti-preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body","headers"],"properties":{"body":{"type":"object","required":["service","input"],"properties":{"input":{"type":"object","required":["unsignedTransaction","applicationDescription","expectedBehavior","concern"],"properties":{"concern":{"type":"string","maxLength":3000,"minLength":1},"expectedBehavior":{"type":"string","maxLength":3000,"minLength":1},"unsignedTransaction":{"type":"string","maxLength":12000,"minLength":1,"description":"JSON-encoded unsigned transaction matching unsigned-transaction.schema.json. Base Sepolia 84532 only. No private keys, seed phrases, signed transactions or credentials."},"applicationDescription":{"type":"string","maxLength":3000,"minLength":1}},"additionalProperties":false},"service":{"type":"string","const":"gti-preflight"},"deliveryEmail":{"type":"string","format":"email","maxLength":254}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"headers":{"type":"object","required":["Content-Type","Authorization","Idempotency-Key"],"properties":{"Content-Type":{"type":"string","const":"application/json"},"Authorization":{"type":"string","description":"Replace the deliberately invalid placeholder with Bearer followed by a fresh private random 32-byte capability encoded as 64 lowercase hex characters. Retain it privately for result retrieval; never reuse a published example credential."},"Idempotency-Key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$"}},"additionalProperties":false},"bodyType":{"type":"string","const":"json"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["ok","paymentState","status","statusUrl","resultUrl"],"properties":{"ok":{"type":"boolean"},"status":{"type":"string"},"resultUrl":{"type":"string"},"statusUrl":{"type":"string"},"paymentState":{"type":"string"}}}}}},"additionalProperties":false},"responseSchema":{"type":"json","example":{"ok":true,"status":"paid","resultUrl":"/api/agent/v1/jobs/agent_SAMPLE/result","statusUrl":"/api/agent/v1/jobs/agent_SAMPLE","paymentState":"settled"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"149","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$149/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"149","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"149","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nwQ-T74oKX9qshIp-fPXb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"149","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits an unsigned Base Sepolia transaction for preflight analysis, returning an async job receipt with status and result URLs after USDC payment.","exampleAgentPrompt":"I need a preflight analysis on this unsigned Base Sepolia transaction before I sign it — the app is a token-swap aggregator, I expect it to approve a token allowance for 100 USDC, and my concern is that it might also transfer funds to an unexpected address. Here's the JSON-encoded unsigned transaction: {\"to\":\"0xabc...\",\"data\":\"0x...\",\"value\":\"0\",\"chainId\":84532}.","exampleUseCases":[{"title":"Pre-sign safety check for DeFi swap","prompt":"Before I sign this unsigned Base Sepolia transaction from my DEX aggregator, can you run a preflight on it? The app is supposed to swap 50 USDC for ETH, but I want to confirm it isn't secretly draining my wallet. Here's the unsigned tx JSON: {\"to\":\"0xSwapRouter\",\"data\":\"0xdeadbeef\",\"value\":\"0\",\"chainId\":84532}."},{"title":"Validate NFT mint transaction logic","prompt":"I have an unsigned transaction for minting an NFT on Base Sepolia — the contract is supposed to call safeMint and charge 0.01 ETH, but I'm worried it might have an unexpected admin fee baked in. Can you run a preflight analysis on it and let me know the job status URL so I can check the result?"},{"title":"Audit contract interaction before deployment","prompt":"We're about to run a batch of test transactions on Base Sepolia for our new staking contract. Before anyone signs anything, can you preflight this unsigned transaction — app description is 'ERC-20 staking contract interaction', expected behavior is 'stakes 200 tokens and emits a Staked event', and my concern is a possible reentrancy path in the reward function?"}],"resultDescription":"A JSON object with a boolean 'ok' field, a 'status' string (e.g. 'paid'), a 'paymentState' (e.g. 'settled'), a 'statusUrl' path for polling job progress, and a 'resultUrl' path for retrieving the completed analysis once the async job finishes.","failureModes":["Payment not settled — job not queued, payment state indicates failure","Invalid or missing unsigned transaction JSON — request rejected with schema validation error","Idempotency key reuse with differing payload — conflict or duplicate response","Service unavailable due to deployment configuration — endpoint returns availability error","Malformed capability token in Authorization header — authentication failure","Transaction chain ID is not Base Sepolia 84532 — rejected by schema constraint","Truncated or oversized field exceeding maxLength — request validation error"],"whenToPreferThis":"Choose this endpoint when you need an asynchronous, paid preflight analysis of an unsigned Base Sepolia (chain ID 84532) transaction before signing it — particularly when you want to describe application context, expected behavior, and specific concerns to guide the analysis. This is not a real-time simulator; it suits workflows where a short processing delay is acceptable in exchange for a structured concern-aware review. It is distinct from on-chain simulation tools because it accepts freeform application descriptions and concern text alongside the raw transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:33:32.037Z","isFirstParty":false,"canonicalSlug":"gateway-gti-preflight-transaction-analysis-service-2672e0c7"}