Skip to content

fetchinvoicedoes not recognise quantity param #6089

@lnbc1QWFyb24

Description

@lnbc1QWFyb24

Issue and Steps to Reproduce

Getting an error when trying to use fetchinvoice with the quantity param:

Request:

lightning-cli fetchinvoice -k offer='lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqffqszsk2p6hycmgv9ek2grpyphxjcm9ypmkjer8v46pyzmhd9jxwet5wvhxxmmdzsqs593pq0ylsvakdua5h976f4g3eautgjt3udvtyga47eaw7339sjrhpwpwz' quantity=2

Response:

{
   "code": -32602,
   "message": "quantity parameter required"
}

getinfo output

{
   "id": "026911e6f9a78efe254a54828873b9c3e25d18fcb3da66807e0791cc0e5cb2ac1a",
   "alias": "bob",
   "color": "026911",
   "num_peers": 4,
   "num_pending_channels": 0,
   "num_active_channels": 4,
   "num_inactive_channels": 0,
   "address": [
      {
         "type": "dns",
         "address": "bob",
         "port": 19846
      }
   ],
   "binding": [
      {
         "type": "ipv4",
         "address": "172.18.0.3",
         "port": 19846
      }
   ],
   "version": "v22.11-modded",
   "blockheight": 168,
   "network": "regtest",
   "msatoshi_fees_collected": 3302,
   "fees_collected_msat": "3302msat",
   "lightning-dir": "/home/clightning/.lightning/regtest",
   "our_features": {
      "init": "08a0800a0269a2",
      "node": "88a0800a0269a2",
      "channel": "",
      "invoice": "02000002024100"
   }
}

Metadata

Metadata

Labels

Type::BugAn error, flaw, or fault that produces an incorrect or unexpected result

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions