New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

xpub-scan

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xpub-scan

Look through an xpub for addresses containing funds

latest
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

xpub-scan

Scans an xpub looking for receive addresses containing bitcoin.

Installation

From npm:

npm install -g xpub-scan

From source:

git clone $repo
cd $repo
npm install -g .

Don't want to install globally?

# make index.js executable
# to run: `./index.js <xpub> [options]`
sudo chmod u+x index.js

Usage

xpub-scan <xpub> [options]

Options

  -h, --help           output usage information
  -V, --version        output the version number
  -k, --apikey [key]   api key to use for requests
  -o, --offset [n]     starting address index for scan
  -f, --filter <type>  Filter which addresses to output (options: "used", "hasbalance")
  -p, --print-gap [n]  Print out the addresses at every gap limit interval (default: 20)
  --batch-size [n]     amount of addresses to search at once (default: 50)
  --change             Use change xpub chain, rather than receive chain

Example

xpub-scan xpub6DX2ZjB6qgNGPuGobYQbpwXHrn7zue1xWSpg29cw6HxovCE9F4iHqEzjnhXk1PbKrfVGwMMrgQv7Q1wWDDBYzx85C8dsvD6jqc49U2PYstx \
  --apikey a1d46bfb-1bf1-418a-a6c7-4d411825575d \
  --filter hasbalance \
  --print-gap

The above command will scan the xpub looking for addresses that currently have a balance (using the provided API key), while also printing out addresses at every gap interval.

FAQs

Package last updated on 27 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts