• About
  • Privacy Poilicy
  • Disclaimer
  • Contact
CoinInsight
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
CoinInsight
No Result
View All Result
Home Bitcoin

The transaction historical past made to the deal with through the Electrum Testnet pockets shouldn’t be displayed

Coininsight by Coininsight
June 1, 2025
in Bitcoin
0
The transaction historical past made to the deal with through the Electrum Testnet pockets shouldn’t be displayed
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I’m new to this enterprise, so I apologize for such a probably fundamental and silly query, I attempted to search out any data, however I could not.

Related articles

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

October 13, 2025
The ‘Technique Of Latin America’ OranjeBTC Expands Holdings With $1.94M Bitcoin Buy

The ‘Technique Of Latin America’ OranjeBTC Expands Holdings With $1.94M Bitcoin Buy

October 13, 2025

I made a variety of transfers to the deal with proven within the following instance.

1

I even have these transfers in my historical past, and they’re marked as profitable. For reference, I made a switch from my pockets to the deal with that’s linked to mywallet.

2

I even have a connection to the take a look at community.

3

Within the pockets, as proven, the whole lot is there, the whole lot is ok, however while you attempt to examine the knowledge of my deal with, there’s nothing there.

Right here I checked the deal with by a particular web site.

4


I wrote a small program to examine the historical past of the deal with, steadiness, however nothing is displayed there.

Connecting to Electrum server...
Efficiently related to Electrum server.
Handle: tb1qc7j5j80s02gupl0qa3svg5kr99smjdq9a7yezd
ScriptHash: bb72dcabbea723d56aa49cd29575e53aaabf832f9dbdb45f251b56e187ce915a
Uncooked historical past response: []
Fetching transaction historical past...
Discovered 0 transactions.
Complete steadiness for tb1qc7j5j80s02gupl0qa3svg5kr99smjdq9a7yezd: 0 satoshis (0 BTC)
Present block peak: 900621
Disconnected from Electrum server.

Right here is the code of this system itself:

import * as bitcoin from 'bitcoinjs-lib';
import { ElectrumClient, ElectrumClientEvents } from '@electrum-cash/community';

const ELECTRUM_HOST = 'blackie.c3-soft.com';
const ADDRESS = 'tb1qc7j5j80s02gupl0qa3svg5kr99smjdq9a7yezd';
const NETWORK = bitcoin.networks.testnet;

operate addressToElectrumScriptHash(deal with: string, community: bitcoin.Community): string | null {
  attempt {
    const outputScript = bitcoin.deal with.toOutputScript(deal with, community);
    const hash = bitcoin.crypto.sha256(outputScript);
    return Buffer.from(hash.reverse()).toString('hex');
  } catch (e) {
    console.error(`Didn't convert deal with ${deal with} to scripthash: ${e.message}`);
    return null;
  }
}

async operate debugScripthashHistory(consumer: ElectrumClient<ElectrumClientEvents>, scriptHash: string) {
  attempt {
    const historical past = await consumer.request('blockchain.scripthash.get_history', scriptHash);
    console.log('Uncooked historical past response:', JSON.stringify(historical past, null, 2));
  } catch (error) {
    console.error('Error fetching uncooked historical past:', error.message);
  }
}

async operate checkAddress() {
  const consumer = new ElectrumClient(
    'Handle Checker',
    '1.4.1',
    ELECTRUM_HOST,
  );

  attempt {
    console.log('Connecting to Electrum server...');
    await consumer.join();
    console.log('Efficiently related to Electrum server.');

    const scriptHash = addressToElectrumScriptHash(ADDRESS, NETWORK);
    if (!scriptHash) {
      console.error('Didn't generate scripthash for deal with.');
      return;
    }
    console.log(`Handle: ${ADDRESS}`);
    console.log(`ScriptHash: ${scriptHash}`);
    await debugScripthashHistory(consumer, scriptHash);

    console.log('Fetching transaction historical past...');
    const historyResult = await consumer.request('blockchain.scripthash.get_history', scriptHash);
    if (historyResult instanceof Error) {
      console.error(`Error fetching historical past: ${historyResult.message}`);
      return;
    }
    if (!Array.isArray(historyResult)) {
      console.error('Surprising historical past response:', historyResult);
      return;
    }

    const historical past = historyResult as { tx_hash: string; peak: quantity }[];
    console.log(`Discovered ${historical past.size} transactions.`);

    let totalBalance = 0;
    for (const tx of historical past) {
      const txHash = tx.tx_hash;
      console.log(`Processing transaction: ${txHash} (Block peak: ${tx.peak})`);

      const txDataResult = await consumer.request('blockchain.transaction.get', txHash, true);
      if (txDataResult instanceof Error) {
        console.error(`Error fetching transaction ${txHash}: ${txDataResult.message}`);
        proceed;
      }
      if (!txDataResult || typeof txDataResult !== 'object') {
        console.error(`Invalid transaction knowledge for ${txHash}`);
        proceed;
      }

      const txData = txDataResult as { vout: { worth: string; scriptPubKey: { hex: string } }[] };
      const outputScriptHex = bitcoin.deal with.toOutputScript(ADDRESS, NETWORK).toString('hex');

      for (const vout of txData.vout) {
        if (vout.scriptPubKey.hex === outputScriptHex) {
          const quantity = Math.spherical(parseFloat(vout.worth) * 1e8); // Конвертация BTC в сатоши
          totalBalance += quantity;
          console.log(`Discovered output to deal with: ${quantity} satoshis`);
        }
      }
    }

    console.log(`Complete steadiness for ${ADDRESS}: ${totalBalance} satoshis (${totalBalance / 1e8} BTC)`);

    const blockHeightResponse = await consumer.request('blockchain.headers.subscribe');
    if (blockHeightResponse && typeof blockHeightResponse === 'object' && 'peak' in blockHeightResponse) {
      console.log(`Present block peak: ${blockHeightResponse.peak}`);
    }

  } catch (error) {
    console.error('Error throughout deal with examine:', error.message);
  } lastly {
    attempt {
      await consumer.disconnect();
      console.log('Disconnected from Electrum server.');
    } catch (e) {
      console.error('Error throughout disconnection:', e.message);
    }
  }
}

checkAddress().catch(console.error);
Tags: addressdisplayedElectrumHistoryTestnetTransactionWallet
Share76Tweet47

Related Posts

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

by Coininsight
October 13, 2025
0

They are saying journalists by no means actually clock out. However for Christian, that is not only a metaphor, it...

The ‘Technique Of Latin America’ OranjeBTC Expands Holdings With $1.94M Bitcoin Buy

The ‘Technique Of Latin America’ OranjeBTC Expands Holdings With $1.94M Bitcoin Buy

by Coininsight
October 13, 2025
0

OranjeBTC has acquired an extra 16 BTC for roughly $1.94 million at a mean value of $121,058 per Bitcoin, bringing...

Tapbit Delivers a Robust Presence at TOKEN2049 Singapore

Tapbit Delivers a Robust Presence at TOKEN2049 Singapore

by Coininsight
October 13, 2025
0

Singapore, Singapore, October thirteenth, 2025, ChainwireThe world-renowned blockchain occasion, TOKEN2049 Singapore, efficiently concluded on the Marina Bay Sands Expo and...

Establishments To Double Digital Asset Publicity By 2028

Establishments To Double Digital Asset Publicity By 2028

by Coininsight
October 12, 2025
0

Be a part of Our Telegram channel to remain updated on breaking information protection Institutional buyers are set to greater...

Can BTC And ETH Rebound After A $19B Liquidation Storm?

Can BTC And ETH Rebound After A $19B Liquidation Storm?

by Coininsight
October 12, 2025
0

A crypto selloff triggered by macro tensions worn out $19.37 billion in leveraged trades in simply 24 hours. Nevertheless, now...

Load More
  • Trending
  • Comments
  • Latest
MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

July 24, 2025
BitHub 77-Bit token airdrop information

BitHub 77-Bit token airdrop information

February 6, 2025
Haedal token airdrop information

Haedal token airdrop information

April 24, 2025
MilkyWay ($milkTIA, $MILK) Token Airdrop Information

MilkyWay ($milkTIA, $MILK) Token Airdrop Information

March 4, 2025
Kuwait bans Bitcoin mining over power issues and authorized violations

Kuwait bans Bitcoin mining over power issues and authorized violations

2
The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

2
Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

1
Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

1
BNB Value Soars 17% As Binance Compensates Customers

BNB Value Soars 17% As Binance Compensates Customers

October 14, 2025
Ripple Vs. SWIFT Battle Heats Up With ‘Fax Machine Vs. Web’ Remark Fanning The Flames

Ripple Vs. SWIFT Battle Heats Up With ‘Fax Machine Vs. Web’ Remark Fanning The Flames

October 14, 2025
Goerli Shapella Announcement | Ethereum Basis Weblog

Goerli Shapella Announcement | Ethereum Basis Weblog

October 14, 2025
After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

October 13, 2025

CoinInight

Welcome to CoinInsight.co.uk – your trusted source for all things cryptocurrency! We are passionate about educating and informing our audience on the rapidly evolving world of digital assets, blockchain technology, and the future of finance.

Categories

  • Bitcoin
  • Blockchain
  • Crypto Mining
  • Ethereum
  • Future of Crypto
  • Market
  • Regulation
  • Ripple

Recent News

BNB Value Soars 17% As Binance Compensates Customers

BNB Value Soars 17% As Binance Compensates Customers

October 14, 2025
Ripple Vs. SWIFT Battle Heats Up With ‘Fax Machine Vs. Web’ Remark Fanning The Flames

Ripple Vs. SWIFT Battle Heats Up With ‘Fax Machine Vs. Web’ Remark Fanning The Flames

October 14, 2025
  • About
  • Privacy Poilicy
  • Disclaimer
  • Contact

© 2025- https://coininsight.co.uk/ - All Rights Reserved

No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining

© 2025- https://coininsight.co.uk/ - All Rights Reserved

Social Media Auto Publish Powered By : XYZScripts.com
Verified by MonsterInsights