Skip to main content

Crate lnbot

Crate lnbot 

Source
Expand description

§lnbot

Official Rust SDK for LnBot — Bitcoin for AI Agents.

Give your AI agents, apps, and services access to Bitcoin over the Lightning Network. Create wallets, send and receive sats, and get real-time payment notifications.

§Quick start

use lnbot::{LnBot, CreateInvoiceRequest};

let client = LnBot::new("key_...");
let invoice = client.invoices().create(&CreateInvoiceRequest::new(1000)).await?;
println!("{}", invoice.bolt11);

Re-exports§

pub use client::LnBot;
pub use errors::LnBotError;
pub use types::*;

Modules§

client
errors
resources
types
Request and response types for the LnBot API.