2
I have a question on the command invoice with the optional parameter.
I don't understand how to create the invoice with the optional parameter. The c-lighitning documentations do not have an example but it says:
The fallbacks array is one or more fallback addresses to include in the invoice (in order from most-preferred to least): note that these arrays are not currently tracked to fulfill the invoice.
My question is How do I separate the address in the command invoice? As an example:
invoice msatoshi=100 label="I want to understand the invoice command" description="I am vincent" fallbacks=[2NDVm22NNuosAXFbC27Scsn1smMh1QEFZUk,2MymqReM8EaYCQKzv4rhcvafGGcddZacUtV]
The command runs good, but I want to understand if this command is correct.
Below is the command result:
{
"payment_hash": "9610412eb4f1fa521c76d4194e93f63caae059481cdce6a11dcf369cf94a8aab",
"expires_at": 1568312884,
"bolt11": "lntb1n1pwhz5a5pp5jcgyzt4578a9y8rk6sv5aylk8j4wqk2grnwwdggaeumfe722324sdq5fysxzmfqwe5kucm9de6qxqyjw5qcqp2fppjmc3rmhe0wngplqnl3002udz6vj3kzwqsfppjg7ddp2vfds5hgdvsvknhdut0fxpe4z6ndth02e8reukhg4lu39xefwevkknh5r7l2ljugknfutfhhumsfprpxefpqwmjq66nkh5kfsu0esx5a0lnwk7lhhvp8tgvexl9cg8meusqty4ls3",
"warning_capacity": "No channel with a peer that is not a dead end, has sufficient incoming capacity"
}
I hadn't thought of decoding the whole hahaha, what a fool. Thank you – vincenzopalazzo – 2019-09-05T19:17:16.623
@vincenzopalazzo as a sidenote, since your payment is only 100msat, that payment cannot be accepted on-chain. Fallbacks does not make sense for tiny or time-sensitive payments. – Ugam Kamat – 2019-09-05T19:18:34.253
I was just studying the RPC module and so I wanted to understand more about this command :) – vincenzopalazzo – 2019-09-05T19:20:34.600