Bitcoin Address Checker

Hashes a string, converts it to a BTC address (and key), and checks to see if that address contains any BTC.

Installation

Using Yarn:

yarn global add bitcoin-address-checker

Using npm:

npm i -g bitcoin-address-checker

Usage

$ bitcoin-address-checker <string...> [--json]

$ btccheck <string...> [--json]

Examples

Checking a string for BTC.

$ btccheck This is a string of text.

Address: 1MmK5o62Zi7B7oXpFWQGZGwuZ8uouMThGp WIF: 5Jz2iET5qbX8cV6yUGQMdboidoxeTZxZ7Vk84BHiUybfCYRgJDL Number of Transactions: 0 BTC Received: 0.00000000 Final Balance: 0.00000000

Checking a string for BTC, returning raw JSON.

$ btccheck This is a string of text. --json

{ " final_balance " : 0 , " n_tx " : 0 , " total_received " : 0 , " address " : " 1MmK5o62Zi7B7oXpFWQGZGwuZ8uouMThGp " , " wif " : " 5Jz2iET5qbX8cV6yUGQMdboidoxeTZxZ7Vk84BHiUybfCYRgJDL " , " success " : true }

Note: success should be false if btccheck encounters an error.

Passing data in using stdin

$ echo This is a string of text.| btccheck --stdin

Address: 1MmK5o62Zi7B7oXpFWQGZGwuZ8uouMThGp WIF: 5Jz2iET5qbX8cV6yUGQMdboidoxeTZxZ7Vk84BHiUybfCYRgJDL Number of Transactions: 0 BTC Received: 0.00000000 Final Balance: 0.00000000

Using compressed keys

$ btccheck This is a string of text. --compressed

Address: 12sRotJXv9y34n1suR85mcs86RrSx81W7m WIF: L2NiYzN8MVMzbd3NFLz64YdCmUGcLGUCjfsL92Qn6Uoybgdm6MQC Number of Transactions: 0 BTC Received: 0.00000000 Final Balance: 0.00000000

Only output when a non-zero final balance exists

$ btccheck This is a string of text. --nonzero

License