Close Menu
farm-bitcoin.com
  • Home
  • Bitcoin
    • Bitcoin Atm Machines
    • Bitcoin Books
      • Bitcoin Jobs
        • Bitcoin Price Prediction
        • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gifts
    • Bitcoin Gift Card
    • Bitcoin Mining
    • Bitcoin Wallets
  • Technology
  • Shop
    • Bitcoin Atm Machine
    • Bitcoin Coins
    • Bitcoin Coins, Wallets,Shirts,Books,Gifts
    • Bitcoin Mining Machine
    • Bitcoin Mining Machine Full Set Up
    • Computers and Accessories
    • USB Flash Drives
    • Mini Bitcoin Mining Machine
What's Hot

Simply add people: Oxford medical examine underscores the lacking hyperlink in chatbot testing

June 14, 2025

DemandJen’s Outreach Suggestions [+ Video]

June 14, 2025

Preserving our platform protected: How we shield in opposition to fraud and legal exercise

June 14, 2025
Facebook X (Twitter) Instagram
  • Bitcoin
  • Bitcoin Books
  • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gift Card
Facebook X (Twitter) Instagram
farm-bitcoin.com
  • Home
  • Bitcoin
    • Bitcoin Atm Machines
    • Bitcoin Books
      • Bitcoin Jobs
        • Bitcoin Price Prediction
        • Bitcoin Coin
  • Bitcoin Farm
  • Bitcoin Gifts
    • Bitcoin Gift Card
    • Bitcoin Mining
    • Bitcoin Wallets
  • Technology
  • Shop
    • Bitcoin Atm Machine
    • Bitcoin Coins
    • Bitcoin Coins, Wallets,Shirts,Books,Gifts
    • Bitcoin Mining Machine
    • Bitcoin Mining Machine Full Set Up
    • Computers and Accessories
    • USB Flash Drives
    • Mini Bitcoin Mining Machine
farm-bitcoin.com
Home » The transaction historical past made to the handle through the Electrum Testnet pockets will not be displayed
The transaction historical past made to the handle through the Electrum Testnet pockets will not be displayed
Bitcoin

The transaction historical past made to the handle through the Electrum Testnet pockets will not be displayed

adminBy adminMay 31, 2025No Comments3 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email


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

I made quite a few transfers to the handle proven within the following instance.

The transaction historical past made to the handle through the Electrum Testnet pockets will not be displayed

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 handle that’s linked to mywallet.

2

I even have a connection to the check community.

3

Within the pockets, as proven, the whole lot is there, the whole lot is ok, however whenever you attempt to verify the knowledge of my handle, there’s nothing there.

Right here I checked the handle via a particular web site.

4


I wrote a small program to verify the historical past of the handle, stability, 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 stability 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;

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

async perform 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 perform 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('Did not generate scripthash for handle.');
      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('Sudden 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 information for ${txHash}`);
        proceed;
      }

      const txData = txDataResult as { vout: { worth: string; scriptPubKey: { hex: string } }[] };
      const outputScriptHex = bitcoin.handle.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 stability 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 handle verify:', 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);



Supply hyperlink

Post Views: 14
Address Displayed Electrum History Testnet transaction Wallet
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
admin
  • Website

Related Posts

Preserving our platform protected: How we shield in opposition to fraud and legal exercise

June 14, 2025

HBAR worth dips 6.43% as volatility brews and CMF turns bearish

June 14, 2025

Chart Decoder Collection: Bollinger Bands – Learn how to Commerce Volatility Like a Professional

June 13, 2025

HYIP Initiatives Weekly Cost Report (June 06–13, 2025)

June 13, 2025
Add A Comment
Leave A Reply Cancel Reply

Subscribe to Updates

Get the latest creative news from farm-bitcoin about crypto, bitcoin, business and technology.

Please enable JavaScript in your browser to complete this form.
Loading
About

At Farm Bitcoin, we are passionate about unlocking the potential of cryptocurrency and blockchain technology. Our mission is to make the world of digital currencies accessible and understandable for everyone, from beginners to seasoned investors. We believe that cryptocurrency represents the future of finance, and we are here to guide you through this exciting landscape.

Get Informed

Subscribe to Updates

Get the latest creative news from farm-bitcoin about crypto, bitcoin, business and technology.

Please enable JavaScript in your browser to complete this form.
Loading
Top Insights

Simply add people: Oxford medical examine underscores the lacking hyperlink in chatbot testing

June 14, 2025

DemandJen’s Outreach Suggestions [+ Video]

June 14, 2025
Facebook X (Twitter) Instagram Pinterest
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
Copyright 2025 Farm Bitcoin Design By Prince Ayaan.

Type above and press Enter to search. Press Esc to cancel.

Go to mobile version