Ok, let me try explaining (mostly to myself) what the x402 protocol, launched by Coinbase, means:
✔️ When you type a URL into the browser, your browser ("the client") tries connecting to a server that hosts the website (e.g., Bloomberg). If it successfully connects, the server returns status 200, which means “all good.”
✔️ If you type a wrong URL, the server tells your browser that this page does not exist by returning a 404 error (you’ve definitely seen this one).
✔️ So…the 402 is a new type of response (or rather, it has existed for a long time, but was never used), which means: “hey, the URL exists, but you need to pay for it.”
✔️ If you are a human, you see a paywall and enter your credit card to access the content….
✔️ BUT…if you are a machine (e.g., an AI agent), you actually have no idea that you need to pay. You just get a 200 response, but for a paywall page, not the page that you tried to access.
✔️ 402 solves this issue: it tells you, in a machine-readable way, that accessing the URL requires a payment, and again in a machine-readable way, gives you the accepted payment types (“schemes”).
✔️ The machine can then add payment info and send it back to the server to access the content. I’m not sure it would be cool to send your card details, and a machine can’t have a card anyway…
✔️ BUT…a machine can construct a stablecoin payment: create a signature authorizing the transfer. This is safer than sending card details, because you sign a specific transfer (including the recipient address and the amount), instead of giving general access to your wallet.
✔️ What happens then is the content provider sends it to a Facilitator. You can think of it as a merchant acquirer that processes such requests (collecting signed authorizations and posting them to a blockchain).
✔️ After the payment is processed (“settled”), the machine can access the paid content.
Cool things about it:
✔️ This essentially enables AI agents and similar types of interfaces to pay for things online. There is no need for a human in between.
✔️ It creates a new entity, “Facilitator”, which is a new breed of merchant acquirer (Coinbase launched the protocol and offers such a Facilitator).
✔️ This creates a new use case for stablecoins
Reading about the Coinbase Commerce Payments Protocol that will power USDC on Shopify. If I understand correctly, the protocol allows implementing rules similar to the rules currently enforced by Visa and Mastercard:
✔️ The protocol introduces two concepts: "Escrow" and "Operator"
✔️ Funds from payers are collected into the "Escrow" before being transferred to the merchant
✔️ The "Operator", which can be an "advanced smart contract", facilitates the transfer of funds from the "Escrow" to the merchant (or back to the payer)
✔️ "The protocol is not concerned with how the operator is implemented and just recognizes it as an address"
...so Visa or Mastercard can build their own "Operators" that implement the scheme's rules through smart contracts.
How cool is that?!!!
$COIN $V $MA