wallet tracking backend support

This commit is contained in:
Mononaut
2024-07-25 22:33:32 +00:00
parent ca7221f8b7
commit 862c9591a1
9 changed files with 213 additions and 0 deletions

View File

@@ -255,6 +255,10 @@ class BitcoinApi implements AbstractBitcoinApi {
return this.$getRawTransaction(txids[0]);
}
async $getAddressTransactionSummary(address: string): Promise<IEsploraApi.AddressTxSummary[]> {
throw new Error('Method getAddressTransactionSummary not supported by the Bitcoin RPC API.');
}
$getEstimatedHashrate(blockHeight: number): Promise<number> {
// 120 is the default block span in Core
return this.bitcoindClient.getNetworkHashPs(120, blockHeight);