USDC settlement
Price APIs in a stablecoin and settle payments on XDC.
x402 on XDC
An open standard for paying for APIs, data and digital services over HTTP—with USDC settlement on XDC.
Explore the expanded XDC guide to agent payments, application design and integration choices. AI & agents on XDC →
x402 uses HTTP’s 402 Payment Required status to let a service request payment and a compatible client respond with a signed payment authorization. It was incubated by Coinbase and is developed as an open, blockchain-agnostic payment protocol.
For developers, it enables per-request pricing. For agents, it provides a machine-readable way to discover a price, authorize a payment and retrieve a resource.
A client or agent calls an API endpoint using HTTP.
An unpaid request receives HTTP 402 with the service’s price and accepted payment details.
The client checks its authorization and spending policy, signs the supported payment and retries the request.
The service and its payment infrastructure verify the payment, settle it and return the requested resource according to the integration’s flow.
Price APIs in a stablecoin and settle payments on XDC.
EIP-3009-based integrations let a relayer submit payment authorizations and pay the XDC gas. The user pays the quoted USDC amount.
Build with familiar smart contracts, middleware and developer libraries.
On-chain transaction references let applications record and inspect settlement.
Agents can buy data, access compute, use services and transact with other agents. Metered access makes it possible to charge for a single useful request rather than requiring every interaction to begin with a subscription.
Weather, market information, RPC access and specialist datasets.
Metered processing, model inference and digital tools.
Per-request access to articles, research and other digital resources.
Machine-readable service discovery and payment.
Paid trade-finance, RWA and other institutional data endpoints.
The ecosystem includes resource servers, clients, SDKs and payment facilitators. x402 composes with HTTP applications, MCP servers and agent frameworks; supported networks and payment schemes depend on the chosen implementation.
Protocol information and ecosystem resources.
Current middleware and integration examples.
Use compatible middleware or a facilitator for your framework and network. The original guide identifies Express, Next.js and FastAPI as examples.
Set the accepted USDC amount and payout details for each protected endpoint.
Provide machine-readable payment requirements when payment is missing.
Verify and settle the supported payment before completing the paid resource flow. Publish your service details for discovery.
Fund the correct XDC wallet with USDC and review its custody model.
Authorize a budget, recipients and service calls appropriate for your application. Enable available wallet controls before automation.
Use the service’s documentation or a marketplace to select a supported x402 resource.
Let the compatible client handle the signed retry, then inspect the response and settlement record.
A weather API could price GET /weather at 0.001 USDC per request. A client receives the payment requirement, authorizes the exact amount and retries. This is an illustration of the flow; use current SDK documentation for package names, middleware syntax and XDC configuration.
Follow the maintained x402 quickstart.
XDC AI provides a marketplace, agent tooling and payment infrastructure built around x402. Chat and terminal integrations connect service discovery, USDC payments and transaction records. Wallet setup and limits depend on the selected provider flow.
Browse independently operated APIs.
Integration options for supported agent environments.
Account, wallet, middleware and payment documentation.
Circle’s announcement of native USDC and CCTP V2 on XDC.
No. x402 is an open, blockchain-agnostic protocol. This guide focuses on integrations that settle supported USDC payments on XDC.
No. In the described relayed flow, a relayer pays the XDC transaction fee. The paying client does not need to hold native XDC for that payment.
No. Limits depend on the wallet and configuration. XDC AI’s wallet documentation distinguishes a basic account flow from an opt-in smart-wallet cap.
The protocol supports payment per request. A particular service may still have its own pricing, access conditions or commercial terms.
Yes. The integration uses HTTP request and response flows, with compatible payment-aware server and client components.
Network integration, smart contracts and node operations.
Ask questions, share a tutorial or connect with other builders.
Join the XDC technical community.
AI development tools and technical support for building on XDC.
Content carried forward from XinFin’s public website and linked primary sources. Historical material is identified where applicable.
Source record Editorial methodology