mirror of
https://github.com/alexgo-io/electrum-client.git
synced 2026-01-12 16:53:05 +08:00
feat: remove esmodule type
This commit is contained in:
@@ -8,8 +8,8 @@ import type {
|
||||
PersistencePolicy,
|
||||
Protocol,
|
||||
} from "./types";
|
||||
import type { TransactionVerbose } from "./types/TransactionVerbose.js";
|
||||
import type { MempoolTransaction } from "./types/mempoolTransaction.js";
|
||||
import type { TransactionVerbose } from "./types/transactionVerbose.js";
|
||||
import type { MempoolTransaction } from "./types/mempoolTransaction";
|
||||
|
||||
export class ElectrumClient extends Client {
|
||||
private readonly onConnectCallback:
|
||||
@@ -286,6 +286,9 @@ export class ElectrumClient extends Client {
|
||||
blockchainScripthash_getHistoryBatch(scripthashes: string[]) {
|
||||
return this.requestBatch("blockchain.scripthash.get_history", scripthashes);
|
||||
}
|
||||
blockchainTransaction_get(tx_hash: string, verbose = false) {
|
||||
return this.request("blockchain.transaction.get", [tx_hash, verbose]);
|
||||
}
|
||||
|
||||
blockchainScripthash_getMempool(
|
||||
scripthash: string
|
||||
|
||||
Reference in New Issue
Block a user