rgb-cln/doc/beginners-guide/sending-and-receiving-payme...

935 B

title slug hidden createdAt updatedAt
Sending and receiving payments sending-and-receiving-payments false 2022-11-18T16:27:07.625Z 2023-01-31T15:06:02.214Z

Payments in Lightning are invoice based.

The recipient creates an invoice with the expected <amount> in millisatoshi (or "any" for a donation), a unique <label> and a <description> the payer will see:

lightning-cli invoice <amount> <label> <description>

This returns some internal details, and a standard invoice string called bolt11 (named after the BOLT #11 lightning spec).

The sender can feed this bolt11 string to the decodepay command to see what it is, and pay it simply using the pay command:

lightning-cli pay <bolt11>

Note that there are lower-level interfaces (and more options to these interfaces) for more sophisticated use.