An open protocol that sells a resource per request with HTTP status 402 Payment Required: the server states the price, the client retries with a signed payment, the server settles. See How it works.
The x402 scheme in which the client pays exactly the requested amount of one asset to one address, as an Algorand atomic group. See AVM exact scheme.
Transaction 0 is the server’s fee payer covering the fees of both; transaction 1 is the buyer’s payment with fee 0. The server pays 2,000 microALGO per settled call, so the buyer pays exactly the price. See the atomic group.
More than 2,000 microALGO; 3,000 is a sensible minimum. PaymentGate refuses lower fixed ALGO prices unless you pass allow_loss=True. The floor does not apply to USDC. See the fee floor.
The fee payer pays the ALGO fees in the same group, so the buyer needs no ALGO beyond its minimum balance. Both sides must opt in to USDC first. See Accept USDC.
Every Algorand account must hold 0.1 ALGO, plus 0.1 ALGO per opted-in asset (applications add more), and cannot spend below it.
After the tool succeeds. If it fails, the signed payment is discarded and the buyer is not charged. See Settle-on-success.
Pass replay_db="/path/replay.db" so every worker shares one SQLite store. See Replay store.
A pass is one payment with the note x402-pass:<scope> that makes calls in that scope free for a period (30 days by default). See Passes.
No. It is a 0-amount payment to yourself with fee 0 and an expired validity window, so the network will never accept it. See Identity.
Any wallet that signs Algorand transactions given the encoded transactions and the indexes to sign, for example through @txnlab/use-wallet-react (Pera, Defly, Lute, KMD and others), or a local key in Node. See Connect a wallet.
The server returns the result after the group is confirmed in a block, usually a few seconds. Algorand blocks are final once confirmed, with no forks to wait out.
Within limits you set: a dedicated wallet with a small balance, and spend controls that cap each payment. See AI agents.
Follow Networks to TestNet, then the go-live checklist.