Skip to main content

Crate vylth_flow

Crate vylth_flow 

Source
Expand description

Official Rust SDK for Vylth Flow — self-custody crypto payment processing.

use vylth_flow::Flow;

#[tokio::main]
async fn main() {
    let client = Flow::new("vf_live_...");
    let invoice = client.invoices().create(vylth_flow::CreateInvoiceParams {
        amount: 100.0,
        currency: "USDT".into(),
        network: "tron".into(),
        ..Default::default()
    }).await.unwrap();
    println!("Invoice: {}", invoice.id);
}

Structs§

CreateInvoiceParams
Parameters for creating an invoice.
CreatePayoutParams
Flow
The Vylth Flow client.
FlowBuilder
Builder for configuring the Flow client.
GenerateWalletParams
Invoice
ListParams
PaginatedList
Payout
Swap
SwapParams
SwapQuote
Wallet
WebhookEvent
WebhookVerifier
Webhook signature verifier.

Enums§

FlowError

Type Aliases§

FlowResult