Skip to main content
xWell supports two HTTP 402 payment protocols. Your agent doesn’t need to know the difference — xWell auto-detects and handles both.

x402

An open payment standard that uses the HTTP 402 status code for programmatic payments.

Flow

  1. Agent requests a resource — service returns 402 Payment Required
  2. Response includes payment details (amount, token, chain, recipient)
  3. xWell signs the payment in a secure enclave
  4. xWell retries the request with the payment credential
  5. Service verifies payment and returns the resource

Supported chains

Base, Ethereum, Arbitrum, Optimism.

MPP (Machine Payment Protocol)

An open standard for machine-to-machine payments via HTTP 402, co-developed by Tempo and Stripe.

Flow

  1. Agent requests a resource — service returns 402 with a WWW-Authenticate: MPP challenge
  2. Challenge contains payment parameters
  3. xWell signs a credential in a secure enclave
  4. xWell retries with Authorization: MPP <credential> header
  5. Service verifies and returns a Payment-Receipt header

Supported chains

Tempo, Solana.

Protocol comparison

x402MPP
Auth mechanismPayment credential in headerHTTP challenge–credential–receipt
EVM chainsBase, Ethereum, Arbitrum, Optimism
TempoNoYes
SolanaNoYes

What happens when both are available

If a service supports both protocols, xWell prefers the chain where your wallet has the highest balance.