docs
Get startedTroubleshootingPaymentsWebhooksAgent paymentsSwop MCPOviIdentity (swop.id)SwivyRPC (preview)API reference

Facilitator & networks

Protocol versions, headers, networks, assets, the facilitator Swop settles through, and limits.

At a glance

Value
Protocolx402, version 2 offers; version 1 payments accepted
Schemeexact (EIP-3009 transferWithAuthorization)
NetworkBase mainnet, eip155:8453
AssetUSDC, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, 6 decimals
FacilitatorCoinbase Developer Platform (CDP) x402 facilitator
DiscoveryCDP x402 Bazaar, indexed after a first paid settlement
Payment windowmaxTimeoutSeconds: 300
Max total per purchaseUnder $1,000,000,000 (a precision guard, not a business limit)
Platform fee on agent paymentsNone at launch

Headers

Directionv2 namev1 nameContent
Server → agentPAYMENT-REQUIRED(body only)Base64 JSON of the 402 challenge. The JSON body carries the same object
Agent → serverPAYMENT-SIGNATUREX-PAYMENTBase64 JSON payment. Swop accepts either name
Agent → serverX-ORDERX-ORDERBase64 JSON of options and shipping details, when needed. ?shipping= works too
Server → agentPAYMENT-RESPONSEX-PAYMENT-RESPONSEBase64 JSON of the facilitator's settlement result. Both are sent

The buy endpoint's CORS policy allows GET from any origin with these headers, and exposes the response headers, so browser-based agents can read them.

What changed between v1 and v2

v1v2
Payment headerX-PAYMENTPAYMENT-SIGNATURE
Settlement headerX-PAYMENT-RESPONSEPAYMENT-RESPONSE
Network id"base""eip155:8453" (CAIP-2)
Amount fieldmaxAmountRequiredamount
ResourceString on the offerObject { url, description, mimeType } at the top level

Swop's offers include both amount and maxAmountRequired (always equal), so a client on either version reads the right number. When Swop forwards a payment to the facilitator it mirrors the version the buyer used.

The facilitator

A facilitator is the service that checks an x402 payment (verify) and submits it on-chain (settle), so neither the seller nor the buyer has to run blockchain infrastructure or pay gas. Swop calls Coinbase's CDP facilitator for every agent purchase. The CDP facilitator also builds the x402 Bazaar: endpoints that include Bazaar metadata in their 402 responses are catalogued automatically after a paid settlement, which is how autonomous buying agents discover Swop sellers.

Planned

Swop intends to run its own facilitator so settlement doesn't depend on a third party. Nothing about the buyer or seller flow changes when it does.

Limits and safety

  • Rate limits. Store listings share the general API limit; buy requests have a stricter per-client order limit. A 429 means back off.
  • Stock. Checked before payment: a sold-out product answers 409 and no money moves.
  • Idempotency. A payment that already settled can't create a second order. Retrying returns the first order with duplicate: true.
  • No KYC on this rail. Sellers are paid in USDC without identity verification. Card payments are a separate rail with its own requirements, covered in Payments.
  • Escrow for physical goods. Payment for a physical product is held and released after delivery is confirmed.

On this page