-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add support for displaying in satoshis #74
Comments
I'm happy to implement this myself, but would like to get some discussion going first on how this should function. |
Implementing this was pretty straightforward so I went ahead and made the BTC display unit configurable using a new $ curl $CHARGE/invoice -d msatoshi=150000 -d metadata[checkout][display_unit]=bit Or with json: $ curl $CHARGE/invoice -H 'Content-Type: application/json' -d '{"msatoshi":150000,"metadata":{"checkout":{"display_unit":"bit"}}}' I also changed the default display unit to satoshis. Cheers! |
Great job! Closing this out and opening ElementsProject/wordpress-lightning-publisher#8 to track in Wordpress Lightning Publisher |
mBTC isn't very commonly used and sats are becoming somewhat of a standard. It would be awesome if lightning-charge displayed units in satoshis, especially when used on a paywall like wordpress-lightning-publisher
The text was updated successfully, but these errors were encountered: