p402 v2 livesolana · pump.fun
p402
solana
p402 v2 / solana

the payment layer for machines.

launch a product, return HTTP 402, settle payment on solana and release access automatically.

request consoleno execution yet
request402 requirementsauthorizeverifysettleaccess

press run to send one real unpaid request to a published p402 resource.

network
checking…
network
checking…
rpc
checking…
facilitator
checking…
supported asset
checking…
latest settlement
checking…
payment routing

how a paid request travels

  1. 01request

    a client or agent calls a protected p402 resource with no payment header.

  2. 02402

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

  3. 03authorize

    the wallet or agent signs an USDC transfer on Solana. signing never happens on the server for the payer.

  4. 04verify

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

  5. 05settle

    settlement is submitted on Solana and confirmed against chain state.

  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.

  • signed USDC transfers on Solana
  • 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://p402.app/api/x402/<slug>

HTTP/1.1 402 Payment Required
content-type: application/json
{
  "x402Version": 2,
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "asset": "EPjFWJ5M…Dt1v",
      "amount": "1000000",
      "payTo": "…",
      "maxTimeoutSeconds": 60
    }
  ],
  "resource": { "url": "https://p402.app/api/x402/<slug>" }
}

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

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