bitcoin-address-checker

3.1.0 • Public • Published

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]

Or...

$ 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

Copyright 2017 Austin Peterson <austin@akpwebdesign.com> (https://blog.akpwebdesign.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

Package Sidebar

Install

npm i bitcoin-address-checker

Weekly Downloads

1

Version

3.1.0

License

MIT

Last publish

Collaborators

  • akp