Cardano Enables Seamless API Payments with x402 Integration
Cardano has integrated its native ADA token with the x402 SDK for seamless API payments. This integration allows applications and AI agents to pay for API calls in ADA or Cardano-native tokens through ordinary HTTP requests, eliminating the need for accounts, API keys, or subscription plans.
The x402 protocol is built around the HTTP status code 402, which was previously reserved for future use. When a client makes a request, the server responds with a 402 status code indicating that payment is required. The client then constructs a signed transaction on the Cardano blockchain and sends it along with the request.
Cardano's extended UTxO (eUTxO) model allows for user-signed transactions to settle directly on-chain, making this integration particularly well-suited for x402-style functionality. This integration supports Cardano's mainnet as well as preprod and preview testnets, providing developers with a sandbox to experiment before going live.
The framework accommodates not only ADA but also Cardano-native stablecoins such as USDM, DJED, and iUSD. This is particularly useful for scenarios where price volatility would make raw crypto payments impractical.