Crate rust_x402

Crate rust_x402 

Source
Expand description

§x402 - HTTP-native micropayments

A Rust implementation of the x402 protocol for HTTP-native micropayments. This library provides the core types, client, and middleware for implementing payment-protected HTTP resources.

Re-exports§

pub use blockchain::BlockchainClient;
pub use blockchain::BlockchainClientFactory;
pub use client::X402Client;
pub use error::Result;
pub use error::X402Error;
pub use real_facilitator::BlockchainFacilitatorClient;
pub use real_facilitator::BlockchainFacilitatorConfig;
pub use real_facilitator::BlockchainFacilitatorFactory;
pub use wallet::Wallet;
pub use wallet::WalletFactory;
pub use types::*;

Modules§

axum
Axum integration for x402 payments
blockchain
Real blockchain integration for x402 payments
client
HTTP client with x402 payment support
crypto
Cryptographic utilities for x402 payments
error
Error types for the x402 library
facilitator
Facilitator client for payment verification and settlement
middleware
Middleware implementations for web frameworks
proxy
Proxy server implementation for x402 payments
real_facilitator
Real facilitator client implementation
template
HTML template system for x402 paywall
types
Core types for the x402 protocol
wallet
Real wallet integration for x402 payments

Constants§

VERSION
Current version of the x402 library
X402_VERSION
x402 protocol version