Expand description
Wire types, CAIP-2 network identifiers, scheme markers, and money for the x402 payment protocol (version 2).
Re-exports§
pub use echo::validate_extension_echoes;pub use error::AsPaymentProblem;pub use error::ClientError;pub use error::ErrorReason;pub use error::FacilitatorError;pub use error::FacilitatorTransportKind;pub use error::PaymentProblem;pub use error::SettlementError;pub use error::VerificationError;pub use extension::AdvertiseContext;pub use extension::BoxFuture;pub use extension::DynExtension;pub use extension::Extension;pub use extension::ExtensionRegistry;pub use extension::SettleContext;pub use extension::VerifyContext;pub use money::MoneyAmount;pub use money::MoneyAmountParseError;pub use money::ScaleFromMantissa;pub use network::ChainId;pub use network::ChainIdFormatError;pub use network::ChainIdPattern;pub use network::ChainProvider;pub use network::DeployedTokenAmount;pub use network::NetworkInfo;pub use payment::Base64Bytes;pub use payment::DEFAULT_ASSET_DECIMALS;pub use payment::EXTENSION_RESPONSE_LOG_FIELDS;pub use payment::ExtensionEntry;pub use payment::Extensions;pub use payment::PaymentPayload;pub use payment::PaymentRequired;pub use payment::PaymentRequirements;pub use payment::PriceTag;pub use payment::ResourceInfo;pub use payment::SettleRequest;pub use payment::SettleResponse;pub use payment::SettlementOverrideError;pub use payment::SettlementOverrides;pub use payment::SupportedPaymentKind;pub use payment::SupportedResponse;pub use payment::TypedVerifyRequest;pub use payment::U64String;pub use payment::UnixTimestamp;pub use payment::V2;pub use payment::VerifyRequest;pub use payment::VerifyResponse;pub use payment::Version;pub use payment::Version2;pub use payment::asset_decimals_from_extra;pub use payment::find_matching_requirements;pub use payment::resolve_settlement_override_amount;pub use payment::schema_has_external_ref;pub use scheme::AuthCaptureScheme;pub use scheme::BatchSettlementScheme;pub use scheme::ExactScheme;pub use scheme::SchemeId;pub use scheme::SchemeMarkerError;pub use scheme::SchemeSlug;pub use scheme::UptoScheme;
Modules§
- echo
- Client extension-echo validation (official
validateExtensions). - error
- Layered error types for x402 facilitator operations.
- extension
- Extension trait and registry.
- metrics
- Stable metric names emitted by the r402 stack.
- money
- Human-readable currency amount parsing.
- network
- CAIP-2 network identifiers and chain-provider metadata.
- payment
- Payment envelopes for the x402 protocol.
- scheme
- Scheme identifiers and name-marker types.