Strike Lightning API Interface in Rust (Unofficial)
Rust interface to Strike's excellent Lightning Network API. Easily add lightning tipping or payments to any application.
If you don't have an API key, apply for one Strike. In your application use an email with an existing strike account for quick approval.
Tipping Example
Using Strikes API to tip someone, or even yourself, is very easy.
Cargo.toml
[]
# For this example you must include the tipping feature
= { = "0.0.3", = ["tipping"] }
# Any qrcode generation library
= { = "4.1.2"}
# Any multi-threading library
= { = "1.17.0", = ["full"]}
main.rs
use ;
extern crate qrcode_generator;
use ;
// Currently I only have a async version of tipping
async
This result in create a payable Lightning invoice, and a qr code saved to a png.