Skip to content

Instantly share code, notes, and snippets.

@bumi
Created February 9, 2019 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bumi/38813d68c840ae1657bc7e66f75c5d8d to your computer and use it in GitHub Desktop.
Save bumi/38813d68c840ae1657bc7e66f75c5d8d to your computer and use it in GitHub Desktop.
quck example to use the blockstream_satellite ruby gem
require "blockstream_satellite"
order = BlockstreamSatellite::Order.create(path: '/path/to/file')
puts order.status #=> pending
order.pay # sends the lightning payment using the configured lnd client
puts order.status #=> transmitting
order.refresh
puts order.status #=> sent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment