A family of open-source crates covering the full x402 protocol stack — server middleware, client automation, facilitator, and multi-chain support. Auditable, self-hostable, and running in production.
Built in Rust
Memory-safe, zero-cost abstractions. No GC pauses under load, no hidden allocations. Designed for the transaction volume that billions of autonomous agents will generate.
Every chain, one API
EVM networks (Ethereum, Base, Polygon, Arbitrum), Solana, and Aptos — each with a dedicated crate and a shared protocol interface. Add a chain without changing your application logic.
Works with any x402 client
Pure x402 protocol — fully compatible with the Coinbase reference SDK. TypeScript, Python, Go, Java clients speak to x402-rs servers with no adapter, no glue. One open spec. Every compliant implementation interoperates.
Apache 2.0. Implements the open x402 spec — compatible with the Coinbase reference SDK and all compliant clients in TypeScript, Python, Go, and Java.
Server — accept payments
Client — make payments
Facilitator — run your own
Chain support
Both ends of the wire
x402-rs covers the full round-trip — the API that demands payment and the agent that pays it.
Test against real settlement infrastructure from day one — no
wallet setup, no config. Point your middleware at https://facilitator.x402.rs and you're accepting testnet payments immediately.
Supports Base Sepolia, Arbitrum Sepolia, Polygon Amoy, Ethereum Sepolia, Solana Devnet, Monad Testnet, Sei Testnet, and more. Moving to mainnet is a one-line config change.
Open facilitator.x402.rsReady for mainnet?
The same infrastructure runs in production via FareSide. Your integration code doesn't change — just the facilitator URL.