Agent Service · x402 · early usage

Verify an x402 purchase before an AI agent signs

Verify an x402 purchase before an AI agent signs. Validate the live HTTP 402 challenge, Base network, USDC asset, quoted price, recipient, price ceiling, buyer funding, optional gas reserve, and destination hazards, then receive a machine-readable safe-to-sig…

by anywaypossible.com · discovered, not yet claimed by its owner · updated 2026-10-08

30d calls2
30d payers2
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Verify an x402 purchase before an AI agent signs. Validate the live HTTP 402 challenge, Base network, USDC asset, quoted price, recipient, price ceiling, buyer funding, optional gas reserve, and destination hazards, then receive a machine-readable safe-to-sign, fund, review, or reject decision. No account or API key.

Tags: agent payment safety · x402 payment safety · verify before paying · Base USDC preflight · safe autonomous payment · bazaar · builder-code · eip2612GasSponsoring · erc20ApprovalGasSponsoring

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-08
Input example from Bazaar metadata
{
  "expectedPayTo": "0x2222222222222222222222222222222222222222",
  "maxAmountUsdc": "0.10",
  "minGasReserveEth": "0",
  "payerAddress": "0x1111111111111111111111111111111111111111",
  "serviceUrl": "https://example.com/api/report"
}
Output example
{
  "alerts": [],
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "checks": [
    {
      "id": "x402_contract",
      "status": "pass"
    }
  ],
  "decision": "safe_to_sign",
  "network": "eip155:8453",
  "quotedAmountUsdc": "0.01",
  "quotedPayTo": "0x2222222222222222222222222222222222222222",
  "recommendedAction": "Sign only the validated payment requirements.",
  "riskLevel": "low",
  "safeToSign": true
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/28565.json for the price and payment options.
  3. Pay. Call GET https://anywaypossible.com/api/payment-guard. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.01 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
2 calls · 2 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.010xe5690D37805107C56f6195E65A262b234E0E5e7560s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xe5690D37805107C56f6195E65A262b234E0E5e75",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 60
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "alerts": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "asset": {
          "type": "string"
        },
        "checks": {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "decision": {
          "type": "string"
        },
        "network": {
          "type": "string"
        },
        "quotedAmountUsdc": {
          "type": "string"
        },
        "quotedPayTo": {
          "type": "string"
        },
        "recommendedAction": {
          "type": "string"
        },
        "riskLevel": {
          "type": "string"
        },
        "safeToSign": {
          "type": "boolean"
        }
      },
      "required": [
        "decision",
        "safeToSign",
        "riskLevel",
        "quotedAmountUsdc",
        "quotedPayTo",
        "network",
        "asset",
        "checks",
        "alerts",
        "recommendedAction"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "alerts": [
      "string"
    ],
    "asset": "string",
    "checks": [
      {}
    ],
    "decision": "string",
    "network": "string",
    "quotedAmountUsdc": "string",
    "quotedPayTo": "string",
    "recommendedAction": "string",
    "riskLevel": "string",
    "safeToSign": true
  },
  "type": "string"
}

Examples

curl
curl -X POST 'https://anywaypossible.com/api/payment-guard' -H 'Content-Type: application/json' --data '{"expectedPayTo":"0x2222222222222222222222222222222222222222","maxAmountUsdc":"0.10","minGasReserveEth":"0","payerAddress":"0x1111111111111111111111111111111111111111","serviceUrl":"https://example.com/api/report"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://anywaypossible.com/api/payment-guard", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"expectedPayTo\":\"0x2222222222222222222222222222222222222222\",\"maxAmountUsdc\":\"0.10\",\"minGasReserveEth\":\"0\",\"payerAddress\":\"0x1111111111111111111111111111111111111111\",\"serviceUrl\":\"https://example.com/api/report\"}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://anywaypossible.com/api/payment-guard", json=json.loads("{\"expectedPayTo\":\"0x2222222222222222222222222222222222222222\",\"maxAmountUsdc\":\"0.10\",\"minGasReserveEth\":\"0\",\"payerAddress\":\"0x1111111111111111111111111111111111111111\",\"serviceUrl\":\"https://example.com/api/report\"}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
anywaypossible.com
Endpoint
https://anywaypossible.com/api/payment-guard
Machine-readable
/resources/28565.json