September 13, 2026

How to get total number of transactions from bitcoin core wallet using rpc

I’m trying to implement paginations using :

https://chainquery.com/Bitcoin-api/listtransactions

I want to have reverse listing (oldest first), so I need to get total number of transaction returned by listtransactions call.

I know that getwalletinfo returns number of transactions, but listtransactions returns transaction outputs, which are more if sendmany is used.

Is there any method to get listtransactions.length without fetching all transaction in the wallet ?

Previous Article

Bitcoin library vs script to develop application

Next Article

The warpwallet challenge 2