LNDHub + LNBits account - only last 20 history transactions
Describe the bug
When using lndhub connected to an lnbits server (0.12.12 version) in the Zeus wallet — at least when several accounts are connected and switched between (this might even work the same way with just one account) — our transaction history displays only the last 20 transactions available in lndhub. We don’t see the rest of the transactions, although there are even older ones following them, but only those with positive amounts (in green).
Reproduce
Try creating one, or better yet, two accounts under lndhub (LNBits 0.12.12 + LNDHub extension). Make more than twenty transactions that spend funds in them. You should see that when viewing the history in the zus wallet for these accounts, only the last twenty transactions appear, and then only transactions with positive deposits—that is, green ones.
ZEUS version
v0.11.3
Node interface
LndHub
Network
Clearnet
Device
Fold5
Device operating system
Android 15
Log output
I just looked at the API documentation for the LNDHub extension for the LNBits server. By default, they provide exactly the last 20 transactions and exactly the last 20 invoices. I think the problem is related to that. Apparently, pagination isn't implemented when requesting the history, which is why you always get the last 20.
I don't think the original LNDHub implementation supported limits or paging either so it's up to the implementation dev to set the limit here.
Good afternoon. I'm sorry for replying so late. Regarding the API I referenced in my second message, I made a mistake. I looked up the API for the LNBits server itself, which is not the API for the LNDHub protocol. I can't tell you where to find the LNDHub protocol or how it's implemented in the LNBits server, as I don't know. It's quite possible that there is no pagination and everything is output at once. Or maybe it only shows the last 20 transactions; I don't know. If you could check this yourself, that would be great.