# Gateway GTI Preflight Transaction Analysis Service

> Gateway GTI Preflight Transaction Analysis Service is a paid API for AI agents from gateway-wallet-payments.jerryrnapier.workers.dev, paid per call via x402, $149/call, status unknown (last checked 2026-10-18).

Submits an unsigned Base Sepolia transaction for preflight analysis, returning an async job receipt with status and result URLs after USDC payment.

## Facts

- Endpoint: POST https://gateway-wallet-payments.jerryrnapier.workers.dev/api/agent/v1/services/gti-preflight?utm_source=zero.xyz
- Price: $149/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-gti-preflight-transaction-analysis-service-2672e0c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-szLLi777gZnYD7czD5Gq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gateway-gti-preflight-transaction-analysis-service-2672e0c7 -d '<json body>'
```

Example prompt: 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}.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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",
     "co
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "status": "paid",
  "resultUrl": "/api/agent/v1/jobs/agent_SAMPLE/result",
  "statusUrl": "/api/agent/v1/jobs/agent_SAMPLE",
  "paymentState": "settled"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-gti-preflight-transaction-analysis-service-2672e0c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway-wallet-payments.jerryrnapier.workers.dev](https://www.zero.xyz/host/gateway-wallet-payments.jerryrnapier.workers.dev/llms.txt)
