Issue and Steps to Reproduce
The fetchinvoice RPC does not seem to accept the quantity parameter:
lightning-cli fetchinvoice -k offer='lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqffqszsx2a5kgem9wsfqxctnvs2qzpqkyypn7jale4nm6r7gtpyej2dry4wsvwveac3lf30p9w93pz0px2e7gzq' quantity=2
{
"code": -32602,
"message": "quantity parameter required"
}
getinfo output
{
"id": "037196806b4a00b5035db861f70a42e2d90e3900757403b183a81e4c35154389e8",
"alias": "dave",
"color": "037196",
"num_peers": 4,
"num_pending_channels": 0,
"num_active_channels": 1,
"num_inactive_channels": 0,
"address": [
{
"type": "dns",
"address": "dave",
"port": 19846
}
],
"binding": [
{
"type": "ipv4",
"address": "172.23.0.6",
"port": 19846
}
],
"version": "v22.11-modded",
"blockheight": 157,
"network": "regtest",
"msatoshi_fees_collected": 0,
"fees_collected_msat": "0msat",
"lightning-dir": "/home/clightning/.lightning/regtest",
"our_features": {
"init": "08a0800a0269a2",
"node": "88a0800a0269a2",
"channel": "",
"invoice": "02000002024100"
}
}
** Edited
Issue and Steps to Reproduce
The
fetchinvoiceRPC does not seem to accept thequantityparameter:lightning-cli fetchinvoice -k offer='lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqffqszsx2a5kgem9wsfqxctnvs2qzpqkyypn7jale4nm6r7gtpyej2dry4wsvwveac3lf30p9w93pz0px2e7gzq' quantity=2{ "code": -32602, "message": "quantity parameter required" }getinfooutput{ "id": "037196806b4a00b5035db861f70a42e2d90e3900757403b183a81e4c35154389e8", "alias": "dave", "color": "037196", "num_peers": 4, "num_pending_channels": 0, "num_active_channels": 1, "num_inactive_channels": 0, "address": [ { "type": "dns", "address": "dave", "port": 19846 } ], "binding": [ { "type": "ipv4", "address": "172.23.0.6", "port": 19846 } ], "version": "v22.11-modded", "blockheight": 157, "network": "regtest", "msatoshi_fees_collected": 0, "fees_collected_msat": "0msat", "lightning-dir": "/home/clightning/.lightning/regtest", "our_features": { "init": "08a0800a0269a2", "node": "88a0800a0269a2", "channel": "", "invoice": "02000002024100" } }** Edited