Skip to main content

Crate granthe

Crate granthe 

Source
Expand description

Official Rust SDK for Granthe — institutional liquidity rail for crypto settlement.

use granthe::Granthe;

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

Structs§

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

Enums§

GrantheError

Type Aliases§

GrantheResult