Skip to main content

vylth_flow/
lib.rs

1//! Official Rust SDK for Vylth Flow — self-custody crypto payment processing.
2//!
3//! ```rust,no_run
4//! use vylth_flow::Flow;
5//!
6//! #[tokio::main]
7//! async fn main() {
8//!     let client = Flow::new("vf_live_...");
9//!     let invoice = client.invoices().create(vylth_flow::CreateInvoiceParams {
10//!         amount: 100.0,
11//!         currency: "USDT".into(),
12//!         network: "tron".into(),
13//!         ..Default::default()
14//!     }).await.unwrap();
15//!     println!("Invoice: {}", invoice.id);
16//! }
17//! ```
18
19mod client;
20mod error;
21mod http;
22mod types;
23mod resources;
24
25pub use client::{Flow, FlowBuilder};
26pub use error::{FlowError, FlowResult};
27pub use types::*;
28pub use resources::webhooks::WebhookVerifier;