Skip to main content

Crate ows_pay

Crate ows_pay 

Source
Expand description

ows-pay — payment client for the Open Wallet Standard.

Chain-agnostic: works with any chain the wallet supports. Payment scheme dispatch (e.g. EVM “exact” / EIP-3009) is handled internally based on the x402 scheme field.

let result = ows_pay::pay(&wallet, "https://api.example.com/data", "GET", None).await?;
let services = ows_pay::discover(None, None, None).await?;

Re-exports§

pub use error::PayError;
pub use error::PayErrorCode;
pub use types::DiscoverResult;
pub use types::PayResult;
pub use types::PaymentInfo;
pub use types::Protocol;
pub use types::Service;
pub use wallet::Account;
pub use wallet::WalletAccess;

Modules§

error
fund
types
wallet

Functions§

discover
Discover payable services.
pay
Make an HTTP request with automatic payment handling.