Types
Accepts
Union type for payment configuration:
AcceptsX402
Requires x402 exact payment:
| Field | Type | Required | Description |
|---|---|---|---|
scheme | string | Yes | Must be "exact" |
price | string | Yes | USD price string (e.g. "$0.005") |
network | string | No | CAIP-2 chain ID, overrides x402.network from config |
payTo | string | No | EVM address to receive payment, overrides x402.payTo config |
AcceptsFree
No payment required:
Exports
HTTPFacilitatorClient
Client for communicating with an x402 facilitator service. Re-exported from @x402/core/server.
facilitator
The default facilitator client used by AixyzServer. Points to the Agently-hosted x402 facilitator.
AcceptsScheme
Zod schema for validating Accepts objects at runtime:
Usage
Agents and tools declare anaccepts export to control x402 payment gating. Endpoints without accepts are not registered.
Custom facilitator
Createapp/accepts.ts to override the default facilitator: