@ -102,27 +102,21 @@ You can check the status of the channel using `cli/lightning-cli getpeers`, whic
### Receiving and receiving payments
### Receiving and receiving payments
Payments in Lightning are invoice based.
Payments in Lightning are invoice based.
The recipient creates an invoice with the expected `<amount>` in millisatoshi, a `<label>` and a `<description>`:
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:
This returns a random value called `rhash` that is part of the invoice.
This returns some internal details, and a standard invoice string called `bolt11` (named after the [BOLT #11 lightning spec](https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md).
The recipient needs to communicate its ID `<recipient_id>`, `<rhash>` and the desired `<amount>` to the sender.
The sender needs to compute a route to the recipient, and use that route to actually send the payment.
The sender can feed this `bolt11` string to the `decodepay` command to see what it is, and pay it simply using the `pay` command:
The route contains the path that the payment will take through the Lightning Network and the respective funds that each node will forward.