Skip to content

aymericb/Sample-BitcoinWalletBalance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This sample code illustrates how to compute the effective balance of a Bitcoin wallet. As explained in a blog post, the balance of a public address as returned via online APIs such as blockchain.info, does not necessarily reflect the effective balance visible in the Bitcoin Core wallet.

This code parses the wallet.dat file to extract all the keys from the key pools and uses the the public blockchain.info to compute the balance of a wallet.

Usage

  1. Install node.js and NPM.

  2. Checkout code

     git clone https://github.com/aymericb/Sample-BitcoinWalletBalance Sample-BitcoinWalletBalance
     cd Sample-BitcoinWalletBalance
    
  3. Install dependencies.

     npm install
    
  4. Launch tool

     node wallet.js <path-to-wallet.dat>
    

About

Sample code to demonstrate how to compute the balance of a Bitcoin wallet using node.js and the blockchain.info API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published