Skip to content
Platform documentation
Isolated x402 payments
Guides

Isolated x402 payments

Pay supported HTTP resources through a separately authorized, mandate-funded signer.

Keep payment authority separate

Provider gas authority cannot sign EIP-3009 payment authorizations. Agent spending uses a separate encrypted payer approved for the provider, mandate, worker, chain, token, merchant, resource origin, amount ceiling and expiry. The payer has no unrestricted access to the main vault.

The unchanged on-chain mandate enforces allocation, worker, rolling-window, lifetime and per-payment funding limits. Its recipient is the isolated payer. Downstream merchant and resource policies are enforced by the approved server signer; they are not an on-chain merchant whitelist.

Fund, sign and reconcile

Use a stable idempotency_key with bagseven_fetch. The daemon reserves access credits and funds only the authorized allocation through the mandate. Funding bytes and EIP-3009 authorizations are journaled before broadcast or external submission. Database locks, fenced leases and one unresolved allocation per payer coordinate retries.

Use bagseven_x402_payment to inspect or reconcile a job. HTTP success is not settlement evidence: the platform verifies the confirmed token transfer and authorization nonce. Unknown transfers into the payer do not enlarge its authorized job budget.

Revocation and unused funds

Provider revocation stops new signing. An authorization already issued may settle before expiry, so recovery must wait for reconciliation and confirmed expiry. Unused allocated funds return only to their source vault. Returning tokens does not reset the mandate’s spent quota; confirmed refunds can restore reserved feature credits.

Deployment compatibility

Configure the daemon-only X402_PAYMENT_ENCRYPTION_KEY and a compatible facilitator. The current adapter targets standard v2 exact EVM payments and checks network/token compatibility. Capability probes and local tests do not prove a funded public Fuji settlement.

Bagseven documentationemail and wallet · Avalanche · Registry