Skip to main content

Optional x402 payment track

NexaLayer’s default funding model is route-A: a human funds the account, then agents spend inside owner-defined budget guardrails. This page describes an optional future (or pilot) track that uses HTTP 402 Payment Required for machine-readable settlement. It is not required for MCP or REST Session usage, and it should not be treated as the primary product story.

How this differs from human top-up

Prerequisites before advertising x402 as available

Do not market x402 as a live NexaLayer payment feature until all of the following are implemented and tested:
  • supported network, asset, facilitator, fees, and settlement-finality policy
  • owner-signed wallet authority with per-transaction and daily limits
  • replay protection binding payment proof to method, path, amount, expiry, and idempotency key
  • atomic crediting or fulfillment after verified settlement, with duplicate-proof reconciliation
  • refund and dispute handling, sanctions screening, accounting records, and key compromise response
  • SDK and MCP behavior for 402, approval, payment, retry, and receipt verification

Current API boundary

Today’s API can create a USDT TRC20 recharge order and poll chain-confirmation status, but the caller must already control a compatible wallet. That is API-complete order orchestration for human-funded recharge, not a substitute for the optional x402 track above.

Pilot rules

Any first production x402 pilot should be capped, allowlisted, and kept separate from the existing TRC20 recharge path. No release should silently give an agent custody of a wallet or unlimited authority to spend. Prefer owner approval and hard budget ceilings even when a 402 flow is enabled. For the default agent path, see NexaLayer for AI Agents and Spend limits.