Hashes a string, converts it to a BTC address (and key), and checks to see if that address contains any BTC.
yarn global add bitcoin-address-checker
npm i -g bitcoin-address-checker
$ bitcoin-address-checker <string...> [--json]
$ btccheck <string...> [--json]
$ btccheck This is a string of text.
Address: 1MmK5o62Zi7B7oXpFWQGZGwuZ8uouMThGp
WIF: 5Jz2iET5qbX8cV6yUGQMdboidoxeTZxZ7Vk84BHiUybfCYRgJDL
Number of Transactions: 0
BTC Received: 0.00000000
Final Balance: 0.00000000
$ 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.
$ 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
$ btccheck This is a string of text. --compressed
Address: 12sRotJXv9y34n1suR85mcs86RrSx81W7m
WIF: L2NiYzN8MVMzbd3NFLz64YdCmUGcLGUCjfsL92Qn6Uoybgdm6MQC
Number of Transactions: 0
BTC Received: 0.00000000
Final Balance: 0.00000000
$ btccheck This is a string of text. --nonzero
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.