Expand description
Hedera chain support for the x402 payment protocol.
This crate implements the x402 "exact" scheme for Hedera: the buyer
signs a TransferTransaction that credits payTo, and a facilitator
fee payer submits it after Mirror Node preflight.
§Features
- CAIP-2 Addressing:
hedera:mainnetandhedera:testnet - HBAR and HTS: native tinybars (
0.0.0) and USDC token ids - Fee-payer sponsorship:
extra.feePayeris copied from/supported - In-process facilitator: verify and settle via Hiero SDK
§Feature Flags
server— server-side price tag generationclient— client-side transfer signingfacilitator— facilitator-side payment verification and settlementtelemetry—tracinginstrumentation
Re-exports§
pub use chain::inspect_hedera_transaction;clientorfacilitatorpub use chain::HederaChainProvider;facilitatorpub use chain::HederaFeePayer;facilitatorpub use chain::HederaMirrorClient;facilitatorpub use exact::HederaExact;pub use exact::client::HederaExactClient;clientpub use exact::client::HederaSigner;clientpub use exact::facilitator::AliasPolicy;facilitatorpub use exact::facilitator::HederaExactFacilitator;facilitatorpub use exact::facilitator::HederaExactFacilitatorConfig;facilitator
Modules§
Structs§
- HBAR
- Ergonomic accessors for native HBAR on well-known Hedera chains.
- USDC
- Ergonomic accessors for USDC token deployments on well-known Hedera chains.
Statics§
- HEDERA_
NETWORKS - Well-known Hedera networks with their names and CAIP-2 identifiers.
Functions§
- hbar_
deployment - Returns the HBAR deployment for a specific Hedera chain.
- usdc_
hedera_ deployment - Returns the USDC deployment for a specific Hedera chain, if known.
- usdc_
hedera_ deployments - Returns all known USDC deployments on Hedera chains.