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§
- Create
Invoice Params - Parameters for creating an invoice.
- Create
Payout Params - Generate
Wallet Params - Granthe
- The Granthe client.
- Granthe
Builder - Builder for configuring the Granthe client.
- Invoice
- List
Params - Paginated
List - Payout
- Swap
- Swap
Params - Swap
Quote - Wallet
- Webhook
Event - Webhook
Verifier - Webhook signature verifier.