Rename fetchTransactions to fetchAddressHistory

This commit is contained in:
Jim Hamill
2025-04-09 02:03:27 +00:00
parent a662d5cc7e
commit 05f858549b
6 changed files with 27 additions and 15 deletions
@@ -69,9 +69,7 @@ export class BlockchainElectrum extends BaseBlockchain {
store: BaseStore;
opts: BlockchainElectrumOpts;
constructor(
public readonly params: BlockchainElectrumParams = {},
) {
constructor(public readonly params: BlockchainElectrumParams = {}) {
super();
// Set the store, or use the memory store by default.
@@ -266,7 +264,7 @@ export class BlockchainElectrum extends BaseBlockchain {
return transaction;
}
async fetchTransactions(address: string) {
async fetchAddressHistory(address: string) {
// Wait for connection to be established before attempting to subscribe.
// TODO: Consider doing this at a higher level.
if (!this.isConnected) {