p402
independent x402 layer · robinhood chain

launch tokens machines can spend.

p402 connects a Pons token to a real paid digital product — an API, an AI agent, a data feed, a file, a private page, a webhook, or an automated service. humans and machines receive HTTP 402 Payment Required, pay on Robinhood Chain, and receive access automatically.

protocol sequenceillustrative
request402settleunlock
  • 01GET /api/x402/<slug> — no payment header
  • 02402 payment required — scheme exact · eip155:4663
  • 03authorization signed · facilitator verifies chain state
  • 04200 ok — X-PAYMENT-RESPONSE receipt attached
network
robinhood chain
chain id
4663
caip-2
eip155:4663
environment
mainnet
payment routing

how a paid request travels

  1. 01request

    client calls a protected p402 resource with no payment header.

  2. 02402

    resource replies HTTP 402 with x402 v2 requirements: asset, amount, payTo, network.

  3. 03authorize

    the wallet or agent signs an EIP-3009 transfer authorization.

  4. 04verify

    the p402 facilitator validates network, asset, amount, expiry and nonce state.

  5. 05settle

    settlement is submitted on Robinhood Chain and confirmed.

  6. 06access

    the resource is released with an X-PAYMENT-RESPONSE receipt.

protocol surface

x402 v2, spoken natively

every p402 resource answers with real x402 v2 payment requirements. the p402 facilitator exposes /api/facilitator/supported, /verify, /settle and /health. settlement is verified against chain state — never against a claim made by the client.

  • EIP-3009 transfer authorizations
  • Permit2 adapter (pending verified deployment)
  • direct transfer proofs for test and demo flows
  • replay protection on nonces, authorizations and transaction hashes
  • HMAC-signed webhooks and idempotent settlement
the 402 handshake
# 1. no payment header -> 402 with machine-readable requirements
curl -i https://<your-app>/api/demo/weather

HTTP/1.1 402 Payment Required
content-type: application/json
{
  "x402Version": 2,
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:4663",
      "asset": "0x…",
      "amount": "1000",
      "payTo": "0x…",
      "maxTimeoutSeconds": 60
    }
  ],
  "resource": { "url": "https://<your-app>/api/demo/weather" }
}

# 2. retry with a signed authorization
curl -H "X-PAYMENT: <base64 payment payload>" https://<your-app>/api/demo/weather
disclosure

p402 is an independent protocol and product. it is not affiliated with, endorsed by, or operated by Robinhood Markets, Pons, Coinbase, or the authors of x402. token launches, payments and settlements depend on configured contracts and network availability; when configuration is missing, p402 says so rather than simulating a result.