How it works
Overview
The parts of px402 and which one does what.
The parts
| Part | Role |
|---|---|
| Your agent | Makes the HTTP request, pays, and proves it paid |
| px402 gateway | Issues the 402, verifies the payment, forwards the paid call, records the earning once |
| Provider API | Your own service. It sees only forwarded, paid calls |
| Helius Privacy Rings | The private transfer: amount and asset are encrypted on chain |
| Solana | Settles the transfer. Sender, receiver, fee payer, signature and time are public |
| Turnkey | Sign-in, the owner’s wallet, provider identity, and key custody for hosted agents. See Turnkey and px402 and TVC |
There is no facilitator. The gateway reads each payment with that provider’s receiver viewing key. For an agent you run yourself, px402 keeps no balance and no ledger. The hosted wallet is the exception.
The flows
One paid call
From the 402 to the 200.
Gateway and retries
What reaches your API, and what happens when it fails.
Self-held agent
Where the key lives and what protects spending.
Hosted agent
Creating, funding, paying and revoking.
MCP connector
How an AI tool signs in and pays.
Provider onboarding
Identity, domain, receiver, routes, review.