-
Notifications
You must be signed in to change notification settings - Fork 5
LightningBuddy Commands
Elaine Ou edited this page Feb 15, 2018
·
2 revisions
Request information about the lightning node attached to a bot. This command is usually issued between bots to exchange contact information.
None.
-
URI
- Lightning node URI, in the form ofnode_id
@host
(which can end in:port
if not default)
Connect to another lightning node. This command is issued as an instruction from the bot owner to the bot.
One of the following:
-
username
- Twitter user that you wish to connect to -
URI
- Target node, in the form ofnode_id
@host
(which can end in:port
if not default)
-
node_id
- Node ID of connected peer
Request an invoice for some amount. This command is usually issued between bots following a payment instruction.
-
amount
- Amount to invoice, in satoshis -
description
(optional) - Description of invoice
-
invoice
- BOLT11 invoice for payer
Pay a Twitter user. This command is issued as an instruction from the bot owner to the bot.
-
amount
- Amount to send, in satoshis -
username
- Twitter user that you wish to pay -
description
(optional) - Description of payment
-
preimage
- payment preimage which hashes to the 'payment_hash' generated in the invoice, to prove that the payment was successful.
Fund payment channel to a Twitter user's lightning node. This command is issued as an instruction from the bot owner to the bot.
-
username
- Twitter user that you wish to fund a channel with -
amount
(optional) - Number of satoshis to commit to the channel. Will default to amount set inconfig.py
-
funding_txid
- Transaction ID of funding transaction