# three.ws Permit2 + EIP-2612 Gas-Sponsored USDC Payment Demo

> three.ws Permit2 + EIP-2612 Gas-Sponsored USDC Payment Demo is a paid API for AI agents from three.ws, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Demonstrates gasless USDC payment on Base mainnet using EIP-2612 permit and Permit2 transfer settled atomically in a single transaction by the x402ExactPermit2Proxy, returning the on-chain tx hash and Basescan link.

## Facts

- Endpoint: GET https://three.ws/api/x402/permit2-paid-demo
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/three-ws-permit2-eip-2612-gas-sponsored-usdc-payment-demo-72c9ded7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pS-stfvEQKKdVU0xvNI93

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 three-ws-permit2-eip-2612-gas-sponsored-usdc-payment-demo-72c9ded7
```

Example prompt: Run the gasless Permit2 + EIP-2612 demo on three.ws — I have a fresh wallet with USDC but no ETH, and I want to see the atomic permit2 settlement go through on Base mainnet with the tx hash and Basescan link.

## When to prefer this

Use this endpoint when you need to demonstrate or test a fully gasless USDC payment flow on Base mainnet where the wallet holds no ETH, relying on EIP-2612 permit + Permit2 for atomic gas-sponsored settlement via the x402 protocol. Prefer this over standard x402 payment demos when the zero-ETH wallet constraint is the specific scenario being validated.

## Known failure modes

- Insufficient USDC balance in payer wallet — payment cannot be settled
- EIP-2612 permit signature invalid or expired — atomic settlement fails
- Permit2 allowance not set or insufficient — transfer reverted
- Base mainnet RPC unavailable — transaction cannot be submitted
- x402ExactPermit2Proxy contract error — atomic settlement reverts on-chain
- Rate limit or facilitator error — 402 or 429 response

## How this service works

Permit2 + EIP-2612 Gas Sponsoring Demo — forces the gasless Permit2 path so a fresh wallet holding USDC but ZERO ETH can complete the flow. The CDP facilitator submits the EIP-2612 permit and the Permit2 transfer atomically in a single transaction via x402ExactPermit2Proxy.settleWithPermit. The response carries the on-chain tx hash + Basescan link so callers can confirm the permit + transfer landed together. Pay $0.001 USDC on Base mainnet.

## Output

Returns a JSON object with ok:true, demo identifier 'permit2-eip2612-gas-sponsoring', the settlement method ('permit2'), the payer address, network name, asset, amount in atomics, on-chain transaction hash, a Basescan explorer URL for the transaction, the settlement timestamp (ISO 8601), whether the asset supports EIP-2612, and the canonical x402ExactPermit2Proxy contract address that settled the combined permit + transfer atomically.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "demo": "permit2-eip2612-gas-sponsoring",
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "payer": "0x4022de2d36c334e73c7a108805cea11c0564f402",
  "proxy": "0x402085c248EeA27D92E8b30b2C58ed07f9E20001",
  "method": "permit2",
  "network": "eip155:8453",
  "explorer": "https://basescan.org/tx/0x9c0a7e5ad5c9c0bb6f04f6ad9c52f4f44bb6c5d9c0a7e5ad5c9c0bb6f04f6ad9",
  "settledAt": "2026-05-21T18:30:00.000Z",
  "transaction": "0x9c0a7e5ad5c9c0bb6f04f6ad9c52f4f44bb6c5d9c0a7e5ad5c9c0bb6f04f6ad9",
  "amountAtomics": "1000",
  "supportsEip2612": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/three-ws-permit2-eip-2612-gas-sponsored-usdc-payment-demo-72c9ded7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from three.ws](https://www.zero.xyz/host/three.ws/llms.txt)
