event icon indicating copy to clipboard operation
event copied to clipboard

LNDHub + LNBits account - only last 20 history transactions

Open Perlover opened this issue 3 months ago • 3 comments

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


Perlover avatar Aug 25 '25 05:08 Perlover

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.

Perlover avatar Aug 25 '25 05:08 Perlover

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.

kaloudis avatar Aug 26 '25 00:08 kaloudis

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.

Perlover avatar Oct 06 '25 13:10 Perlover