{
  "x402Version": 2,
  "id": 1095,
  "slug": "1095",
  "resource": "https://aiagentoracle.ai/api/v1/preflight",
  "description": "Must-call before Base send/swap/bridge/stake/contract_call: returns decision ALLOW|REVIEW|BLOCK plus riskScore, simulation/allowance evidence, reasons[], and expiresAt. Agents must abort on BLOCK, escalate on REVIEW, and only sign/submit on ALLOW while now < expiresAt. Optional unsigned tx + allowanceChecks strengthen evidence; omit sender → REVIEW. $0.25 USDC via x402. Docs: https://aiagentoracle.ai/docs/preflight",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2feCabDFC849C76fdC28CA13Aa0Ab392753EF35C",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "250000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "action": "contract_call",
            "allowanceChecks": [
              {
                "owner": "0x1111111111111111111111111111111111111111",
                "requiredAmount": "100000000",
                "spender": "0x2222222222222222222222222222222222222222",
                "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
              }
            ],
            "amountUsd": 100,
            "contractAddress": "0x2222222222222222222222222222222222222222",
            "fromToken": "USDC",
            "network": "eip155:8453",
            "transaction": {
              "data": "0x12345678",
              "from": "0x1111111111111111111111111111111111111111",
              "to": "0x2222222222222222222222222222222222222222"
            },
            "walletAddress": "0x1111111111111111111111111111111111111111"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "allowanceChecks": [],
            "checkedAt": "2025-12-31T23:59:30Z",
            "contractRisk": {
              "detail": "No contract supplied.",
              "level": "NOT_ASSESSED",
              "value": null
            },
            "dataQuality": "HIGH",
            "decision": "ALLOW",
            "disclaimer": "Informational and non-executable.",
            "expectedPriceImpactPercent": 0.01,
            "expiresAt": "2026-01-01T00:00:30Z",
            "gas": {
              "basis": "ESTIMATED",
              "gasPriceWei": "1000000",
              "usd": 0.02
            },
            "liquidity": {
              "detail": "Reported liquidity.",
              "level": "LOW",
              "value": 10000000
            },
            "marketVolatility": {
              "detail": "Absolute 24h change.",
              "level": "LOW",
              "value": 2
            },
            "priceDeviationPercent": null,
            "reasons": [
              "No elevated risk."
            ],
            "riskScore": 18,
            "simulation": {
              "blockTag": "pending",
              "calldataSelector": "0x12345678",
              "checkedAt": "2025-12-31T23:59:30Z",
              "gasEstimate": "145000",
              "provider": "Base JSON-RPC",
              "returnData": "0x",
              "revertData": null,
              "revertReason": null,
              "status": "SUCCESS",
              "target": "0x2222222222222222222222222222222222222222"
            },
            "slippageRisk": {
              "detail": "Impact and configured slippage.",
              "level": "LOW",
              "value": 1
            },
            "sources": [],
            "walletRisk": {
              "detail": "No wallet evidence queried.",
              "level": "NOT_ASSESSED",
              "value": null
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "enum": [
                      "swap",
                      "transfer",
                      "bridge",
                      "stake",
                      "contract_call"
                    ],
                    "type": "string"
                  },
                  "allowanceChecks": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "owner": {
                          "pattern": "^0x[a-fA-F0-9]{40}$",
                          "type": "string"
                        },
                        "requiredAmount": {
                          "pattern": "^[0-9]+$",
                          "type": "string"
                        },
                        "spender": {
                          "pattern": "^0x[a-fA-F0-9]{40}$",
                          "type": "string"
                        },
                        "token": {
                          "pattern": "^0x[a-fA-F0-9]{40}$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "token",
                        "owner",
                        "spender",
                        "requiredAmount"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10,
                    "type": "array"
                  },
                  "amountUsd": {
                    "exclusiveMinimum": 0,
                    "type": "number"
                  },
                  "contractAddress": {
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "fromToken": {
                    "type": "string"
                  },
                  "maxSlippageBps": {
                    "maximum": 10000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "network": {
                    "enum": [
                      "base",
                      "eip155:8453"
                    ],
                    "type": "string"
                  },
                  "toToken": {
                    "type": "string"
                  },
                  "transaction": {
                    "additionalProperties": false,
                    "properties": {
                      "data": {
                        "maxLength": 131074,
                        "pattern": "^0x(?:[a-fA-F0-9]{2})*$",
                        "type": "string"
                      },
                      "from": {
                        "description": "Sender context. If omitted along with walletAddress, simulation cannot automatically ALLOW.",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "to": {
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "value": {
                        "pattern": "^0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "to",
                      "data"
                    ],
                    "type": "object"
                  },
                  "walletAddress": {
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  }
                },
                "required": [
                  "network",
                  "action",
                  "fromToken",
                  "amountUsd"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "allowanceChecks": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "checkedAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "contractRisk": {
                    "type": "object"
                  },
                  "dataQuality": {
                    "enum": [
                      "HIGH",
                      "MEDIUM",
                      "LOW"
                    ],
                    "type": "string"
                  },
                  "decision": {
                    "enum": [
                      "ALLOW",
                      "REVIEW",
                      "BLOCK"
                    ],
                    "type": "string"
                  },
                  "disclaimer": {
                    "type": "string"
                  },
                  "expectedPriceImpactPercent": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "gas": {
                    "type": "object"
                  },
                  "liquidity": {
                    "type": "object"
                  },
                  "marketVolatility": {
                    "type": "object"
                  },
                  "priceDeviationPercent": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "reasons": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "riskScore": {
                    "maximum": 100,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "simulation": {
                    "type": "object"
                  },
                  "slippageRisk": {
                    "type": "object"
                  },
                  "sources": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "walletRisk": {
                    "type": "object"
                  }
                },
                "required": [
                  "decision",
                  "riskScore",
                  "gas",
                  "liquidity",
                  "slippageRisk",
                  "contractRisk",
                  "marketVolatility",
                  "walletRisk",
                  "simulation",
                  "allowanceChecks",
                  "reasons",
                  "checkedAt",
                  "expiresAt",
                  "sources",
                  "disclaimer"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "aiagentoracle.ai",
  "lastUpdated": "2026-09-06T12:33:04.145Z",
  "quality": {
    "calls30d": 9,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-06T12:33:03.86Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "aiagentoracle.ai",
    "manifest_name": "aiagentoracle.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}