# FAQ

> Short answers to common questions about x402 on Algorand and the x402-avm packages, with links to the full explanation.

### What is x402?

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](https://x402-avm.github.io/how-it-works).

### What is the exact scheme on Algorand?

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](https://x402-avm.github.io/reference/protocol/avm-exact-scheme).

### Why does the payment group have two transactions, and who pays the fees?

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](https://x402-avm.github.io/how-it-works#the-two-transaction-atomic-group).

### What is the lowest price I can charge in ALGO?

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](https://x402-avm.github.io/build/pricing#the-fee-floor).

### How can buyers pay in USDC if fees are in ALGO?

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](https://x402-avm.github.io/production/mainnet#accept-usdc).

### What is the minimum balance requirement?

Every Algorand account must hold 0.1 ALGO, plus 0.1 ALGO per opted-in asset (applications add more), and cannot spend below it.

### When is a payment settled, and what if the tool fails?

After the tool succeeds. If it fails, the signed payment is discarded and the buyer is not charged. See [Settle-on-success](https://x402-avm.github.io/how-it-works#settle-on-success).

### How does replay protection work with several workers?

Pass `replay_db="/path/replay.db"` so every worker shares one SQLite store. See [Replay store](https://x402-avm.github.io/production/security#replay-store).

### How is a pass different from a per-call payment?

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](https://x402-avm.github.io/how-it-works#passes).

### Can an identity proof move my funds?

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](https://x402-avm.github.io/build/identity).

### Which wallets work with x402-avm-js?

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](https://x402-avm.github.io/build/pay-from-browser#connect-a-wallet).

### How long does a payment take?

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.

### Can an AI agent pay for tools safely?

Within limits you set: a dedicated wallet with a small balance, and spend controls that cap each payment. See [AI agents](https://x402-avm.github.io/build/ai-agents#set-limits).

### How do I move from LocalNet to MainNet?

Follow [Networks](https://x402-avm.github.io/production/networks) to TestNet, then the [go-live checklist](https://x402-avm.github.io/production/mainnet#go-live-checklist).

Source: https://x402-avm.github.io/resources/faq
