Created
February 9, 2019 22:00
-
-
Save bumi/38813d68c840ae1657bc7e66f75c5d8d to your computer and use it in GitHub Desktop.
quck example to use the blockstream_satellite ruby gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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