getMerkleProofCount method

  1. @override
Future<int> getMerkleProofCount({
  1. String? walletId,
})
override

Get the count of stored merkle proofs.

Parameters:

  • walletId: Optional wallet ID to count proofs for a specific wallet

Returns: Number of merkle proofs stored

Implementation

@override
Future<int> getMerkleProofCount({String? walletId}) async {
  _ensureInitialized();

  final result = await _pool!.execute('SELECT COUNT(*) FROM merkle_proofs');
  return result.first[0] as int;
}