[][src]Crate ionosphere

This library can send data over Blockstream satellite compatible APIs. By default it will connect to the API endpoint run by Blockstream, but users can choose other providers should they exist at some point.

To use the API you need a running c-lightning instance on the same machine. It has to be on the same bitcoin network as the API endpoint. The API network version (currently testnet for Blockstream) can be queried using IonosphereClient::lightning_node(&self).

Usage example:

let mut client = IonosphereClient::new_blockstream_client(
    &"/home/user/.lightning/lightning-rpc"
);

// Open direct lightning channel to API node
client.open_channel(1000000).unwrap();

// Place bid and pay for it
client.place_bid("src/bin/lipsum.txt", 100000).unwrap();

Don't use this library in production yet, it's hacky and incomplete! PRs welcome :)

Structs

IonosphereClient
LightningNode

Descriptor for the API endpoint's lightning node

NodeAddress

One address of the API endpoint's lightning node

Order

Bid handle needed to manipulate bids after placing them

Enums

BitcoinNetwork

Bitcoin network enum

Error

Constants

BLOCKSTREAM_ENDPOINT

Blockstream's satellite API endpoint