x402-rs

  • Name: x402-rs
  • URL: https://github.com/x402-rs/x402-rs
  • Category: Rust x402 middleware / facilitator scaffold / operator toolkit
  • Tags: ethereum-ecosystem solana-ecosystem
  • Summary: x402-rs is Rust operating glue for x402: client middleware, server middleware, facilitator code, and a runnable facilitator service. Useful if you need the full 402 -> verify -> settle path in Rust. Still tooling around the rail, not the rail.
  • What it does:
    • Provides Rust crates for x402 protocol types, utilities, facilitator traits, and HTTP middleware
    • Ships Axum middleware for servers and Reqwest middleware for clients so Rust services can challenge, pay, and retry x402 flows
    • Includes facilitator libraries plus a runnable facilitator binary for verification and settlement
    • Supports multiple protocol versions and several chain families, with EVM and Solana clearly documented and narrower support for additional networks
    • Documents custom facilitator construction, feature-flagged builds, JSON config, health endpoints, and other operator-facing deployment details
  • Key claims:
    • The main README sells x402-rs as a broad Rust toolkit around x402 rather than one SDK crate
    • The split across core types, client, server, and facilitator modules shows a real Rust-side operating stack, not one thin integration point
    • The build-your-own-facilitator guide is the real reason to keep the note: custom settlement and verification infrastructure are first-class use cases here
    • The facilitator README documents a real service binary with verification, settlement, supported-network, and health endpoints, so this reads as operator tooling rather than demo code
  • Whitepaper: No canonical standalone x402-rs whitepaper or litepaper surfaced in this pass. The clearest source of truth was the monorepo README plus the first-party facilitator and customization docs; see ../whitepapers/x402-rs-primary-sources-2026-05-03.md.
  • Sources:

Internal linkages

Control surface

  • The leverage sits in facilitator configuration, supported chains, settlement backends, and middleware defaults.

  • Serious Rust glue, still glue above x402.

  • Last reviewed: 2026-06-13 UTC