With KeySend, a Lightning payment can be executed without having received an invoice from the payee beforehand.
Normally, Lightning payment requires the payee to create a Lightning invoice in advance, in which all payment-related information is embedded.
This makes it possible to develop a new set of use cases for spontaneous payments.
KeySend can be used to make payments for donations, grants and the like.
But also the payout for affiliate commissions or kickback payments.
KeySend allows Lightning Nodes to send Lightning to other Nodes without having to pay a bill.
To enable receiving KeySend payments, the latest LND version must be used on the target server and the flag: –accept-key-send must be enabled.
If this flag is not set, keySend payments are rejected.
Only the Lightning Node of the payer and the destination node must support KeySend. The intermediate nodes used to forward the payment do not need to be activated for KeySend payment. All LND nodes from version 0.71. support this function.