LndHub icon indicating copy to clipboard operation
LndHub copied to clipboard

Missbehavior of /getuserinvoices

Open timkaebisch opened this issue 3 years ago • 1 comments

I assume the endpoint /getuserinvoices is not working as intended.

This endpoint accepts the following query parameters:

  • limit: (integer - default: 10 - minimum: 0)
  • offset: (integer - default: 0 - minimum: 0)

When I set offset=80 and limit=1 I expect to receive invoice 80. It always returns the n latest invoices of the user (where limit=n). Offset is not taken into account.

Please correct me if I'm missing something. It seems like a bug for me.

timkaebisch avatar Oct 04 '22 14:10 timkaebisch

Hi! Yesterday BlueWallet announced that they will be shutting down their custodial LndHub. https://bluewallet.io/sunsetting-lndhub/

I was trying to download my transaction history, but I also get some issues with the API limit and offset params. I was trying the /gettxs endpoint. It seems that the limit and offset params are not processed at all, it looks like there is a hardcoded limit of 150 txs.

rafaelpac avatar Feb 24 '23 11:02 rafaelpac