mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
fix electrum /scripthash/.../utxo
This commit is contained in:
parent
5a30e99f74
commit
b924142458
1 changed files with 3 additions and 2 deletions
|
|
@ -165,7 +165,8 @@ class BitcoindElectrsApi extends BitcoinApi implements AbstractBitcoinApi {
|
|||
if (!addressInfo || !addressInfo.isvalid) {
|
||||
return [];
|
||||
}
|
||||
return await this.$getScriptHashUtxos(addressInfo.scriptPubKey);
|
||||
const scripthash = this.encodeScriptHash(addressInfo.scriptPubKey);
|
||||
return this.$getScriptHashUtxos(scripthash);
|
||||
}
|
||||
|
||||
async $getScriptHashTransactions(scripthash: string, lastSeenTxId?: string): Promise<IEsploraApi.Transaction[]> {
|
||||
|
|
@ -240,7 +241,7 @@ class BitcoindElectrsApi extends BitcoinApi implements AbstractBitcoinApi {
|
|||
}
|
||||
|
||||
private $getScriptHashUnspent(scriptHash: string): Promise<IElectrumApi.ScriptHashUtxos[]> {
|
||||
return this.electrumClient.blockchainScripthash_listunspent(this.encodeScriptHash(scriptHash));
|
||||
return this.electrumClient.blockchainScripthash_listunspent(scriptHash);
|
||||
}
|
||||
|
||||
async $getTransactionMerkleProof(txId: string): Promise<IEsploraApi.MerkleProof> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue