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
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
{
"expectedPayTo": "0x2222222222222222222222222222222222222222",
"maxAmountUsdc": "0.10",
"minGasReserveEth": "0",
"payerAddress": "0x1111111111111111111111111111111111111111",
"serviceUrl": "https://example.com/api/report"
}{
"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
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/28565.jsonfor the price and payment options. - Pay. Call
GET https://anywaypossible.com/api/payment-guard. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with 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
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.01 | 0xe5690D37805107C56f6195E65A262b234E0E5e75 | 60s |
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 -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-SIGNATUREconst 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
}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 headerDetails
- Provider
- anywaypossible.com
- Endpoint
- https://anywaypossible.com/api/payment-guard
- Machine-readable
/resources/28565.json