# x402 Agent Wallet Receipt Gate Policy

> x402 Agent Wallet Receipt Gate Policy is a paid API for AI agents from x402-wallet.558686.xyz, paid per call via x402, $0.018/call, status unknown (last checked 2026-09-14).

Returns the payment and receipt validation policy for a route, including required network, headers, pay-to address, replay rules, and gate checks for downstream x402 actions.

## Facts

- Endpoint: GET https://x402-wallet.558686.xyz/v1/tools/receipt-gate-policy
- Price: $0.018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-wallet-receipt-gate-policy-3c26fa90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iP5CSymTQ2-hdXWzgoS_y

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 x402-agent-wallet-receipt-gate-policy-3c26fa90
```

Example prompt: What's the receipt gate policy for the x402 route — specifically the required network and max receipt age of 300 seconds — so I can verify the pay-to address, replay rules, and gate checks before proceeding with the downstream action?

## When to prefer this

Use this endpoint when an AI agent needs to inspect or enforce the x402 payment receipt validation policy for a specific route before executing or gating a downstream action. Prefer this over hardcoding payment parameters when the policy (network, replay rules, pay-to address) may vary by route or change over time.

## Known failure modes

- Invalid or unsupported requiredNetwork value returns a 400 error
- maxAgeSeconds out of acceptable range returns a validation error
- Malformed request body returns a 422 unprocessable entity
- Service unavailable returns a 503 with no policy data
- Payment of 0.002 USDC not received results in 402 Payment Required before policy is returned

## How this service works

A buyer-side control console for signature risk, EIP-712 review, transaction decoding, ERC20 allowance risk, Permit/Permit2 approvals, transaction simulation summaries, spend guard policy, receipt gate enforcement, and private-key boundaries.

## Output

A policy object specifying the required blockchain network, required HTTP headers, pay-to address, maximum receipt age (replay window), and gate check rules that must be satisfied for downstream x402-protected actions to proceed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": true
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string",
       "maxLength": 80
      },
      "data": {
       "type": "string",
       "maxLength": 20000,
       "minLength": 2
      },
      "json": {
       "type": "string",
       "maxLength": 50000,
       "minLength": 2
      },
      "text": {
       "type": "string",
       "maxLength": 50000,
       "minLength": 2
      },
      "chain": {
       "type": "string",
       "maxLength": 80
      },
      "value": {
       "oneOf": [
        {
         "type": "string"
        },
        {
         "type": "number"
        },
        {
         "type": "object",
         "additionalProperties": true
        }
       ]
      },
      "target": {
       "type": "string",
       "maxLength": 80
      },
      "calldata": {
       "type": "string",
       "maxLength": 20000,
       "minLength": 2
      },
      "typedData": {
       "oneOf": [
        {
         "type": "object",
         "additionalProperties": true
        },
        {
         "type": "string",
         "maxLength": 50000,
         "minLength": 2
        }
       ]
      },
      "typed_data": {
       "oneOf": [
        {
         "type": "object",
         "additionalProperties": true
        },
        {
         "type": "string",
         "maxLength": 50000,
         "minLength": 2
        }
       ]
      },
      "quote_asset": {
       "type": "string",
       "maxLength": 120
      },
      "buyer_intent": {
       "type": "string",
       "maxLength": 240
      },
      "quote_pay_to": {
       "type": "string",
       "maxLength": 80
      },
      "quote_scheme": {
       "type": "string",
       "maxLength": 40
      },
      "payment_quote": {
       "type": "object",
       "additionalProperties": true
      },
      "quote_network": {
       "type": "string",
       "maxLength": 80
      },
      "known_addresses": {
       "type": "object",
       "additionalProperties": {
        "type": "strin
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "receipt-gate-policy",
  "input": {
   "maxAgeSeconds": 900,
   "requiredNetwork": "eip155:8453"
  },
  "route": "/v1/tools/receipt-gate-policy",
  "result": {
   "gates": [],
   "policy": "policy_example"
  },
  "project": "x402-agent-wallet-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-wallet-receipt-gate-policy-3c26fa90/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-wallet.558686.xyz](https://www.zero.xyz/host/x402-wallet.558686.xyz/llms.txt)
