x402 HTTP payment protocol implementation for the Polkadot/Substrate ecosystem — enabling pay-per-request API monetization with on-chain settlement.
x402-polkadot is an early-stage Rust project in the AI payments / x402 ecosystem, focused on blockchain, payments, polkadot, rust. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like x402-payments-mcp, x402-solana-rust, tempo-x402, afara, dna-x402, piprail.
A demo implementation of the x402 payment protocol for Polkadot.
sequenceDiagram
participant Client
participant Server
participant Facilitator
participant Polkadot
Client->>Server: GET /api/paid
Server->>Client: 402 Payment Required
Note over Client: Auto-signs transaction
Client->>Server: GET /api/paid + X-PAYMENT header
Server->>Facilitator: POST /verify
Facilitator->>Server: {valid: true}
Server->>Facilitator: POST /settle
Facilitator->>Polkadot: Submit transaction
Polkadot->>Facilitator: Confirmed
Facilitator->>Server: {settled: true, tx_hash}
Server->>Client: 200 OK {protected content}
| Service | URL |
|---|---|
| Client | https://x402-client.fly.dev |
| Server | https://server-bold-dream-4447.fly.dev |
| Facilitator | https://facilitator.fly.dev |
cd facilitator
cp .env.example .env
cargo run
cd server
cp .env.example .env
cargo run
cd client
cp .env.example .env
npm install && npm run dev
http://localhost:5173x402-polkadot/
├── client/ # Frontend (Vite + JS)
├── server/ # API server (Rust + Axum)
├── facilitator/ # Transaction service (Rust + Subxt)
Give AI agents a wallet — x402 payment tools over Model Context Protocol.
Production-ready Rust server template for building HTTP APIs with x402 payment integration on Solana. Accept USDC payments for API access. Includes Axum, Actix and Rocket templates.
Autonomous AI colony on the blockchain. Self-replicating agents that clone, evolve their own source code, benchmark their IQ, share neural weights, and pay each other with crypto. All in Rust.
the onramp for pay-as-you-go decentralized storage on IPFS — SOL, USDFC, USDC, and x402 agent payments
DNA — Payment rails for AI agents. x402 micropayment protocol on Solana. Netting, transfer, stream settlement. Receipt anchoring on-chain.
x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.
Agent behavior that compiles
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
x402 payments in Rust: verify, settle, and monitor payments over HTTP 402 flows
The self-improving LLM router that optimize your agentic workflows with every runs, works with any harnesses, any models, any loops.
Production-ready x402 facilitator server.
Rust SDK for the x402 payment protocol.