Skip to content

Instantly share code, notes, and snippets.

@nolim1t
Last active April 25, 2018 03:25
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 nolim1t/de5ad6e1883911ecaa9b290ffb440334 to your computer and use it in GitHub Desktop.
Save nolim1t/de5ad6e1883911ecaa9b290ffb440334 to your computer and use it in GitHub Desktop.
Creating Lightning Invoices by CLI
{
"payment_hash": "7c36d743c39d626b4202b694585763ec6e114f8174582c10f2d2bd6aeb683fa6",
"expiry_time": 1524799298,
"expires_at": 1524799298,
"bolt11": "lntb10p1pddlazzpp50smdws7rn43xksszk629s4mra3hpznupw3vzcy8j627k46mg87nqdp0d9h8vv3jyqczuvpsxys8xct5daeks6tnypek6ctvd3jhxaqxqy9gcqcqp22ah52w0xdem5t8s8dy8efr5lkd6e75ru7mp3vrygzyqx684qq6yz7nehxsvm98pwpadggr6eyd8txswuc4u86xsxlja7l480kt8pvqcp4eafcs"
}
# 1500.5 satoshis (mSatoshis = satoshis * 1000)
cli/lightning-cli invoice 1500500 invoice-number "invoice-number esting Test Testing" 172800
# 2.5 satoshis (not even 1 cent)
cli/lightning-cli invoice 2510 invoice-number "2.51 satoshis" 172800
# smallest
cli/lightning-cli invoice 1 invoice-number "invoice-number 0.001 satoshis smallest" 172800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment