Skip to content

A ready-to-go library for integrating lightning payments into your application.

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

block/romer-sdk

LDK Node

Crate Documentation Maven Central Android Maven Central JVM

A ready-to-go library for integrating lightning payments into your application.

Romer is a non-custodial Lightning node in library form. Its central goal is to provide a small, simple, and straightforward interface that enables users to easily send and receive payments over the Lightning network.

Getting Started

The primary abstraction of the library is [Romer][api_docs_romer], which can be constructed by providing your c= api key to Rome::new. Romer can then be controlled via commands such as send, receive, list_payments, balance, etc.

use romer::Romer;
fn main() {
	let romer = Romer::new("my-api-key").unwrap();

    // receive bitcoin by creating an invoice
    let invoice = romer.receive(100_000, "alpaca socks").unwrap();
    
    // send bitcoin by paying a lightning invoice
	romer.send("INVOICE_STR").unwrap();

    // see all payments sent and received
    let payments = romer.list_payments();

    // see balance information
    let balance = romer.balance();
}

Language Support

Romer itself is written in Rust and may therefore be natively added as a library dependency to any std Rust program. However, beyond its Rust API it also offers language bindings for Swift, Kotlin, and Python based on the UniFFI.

MSRV

The Minimum Supported Rust Version (MSRV) is currently 1.63.0.

About

A ready-to-go library for integrating lightning payments into your application.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE.md
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published