Hot answers tagged

4

you can do it by using blockchain.info and common bash tools that you already have in your system like wget, grep and awk, printf for formatting For example by using (replace ADDRESS with the actual address you want to query): wget -qO- blockchain.info/rawaddr/ADDRESS 2>&1 | grep -Po '"final_balance":\K[0-9]+' And if you want to format the output ...


3

My thoughts, in no particular order: Consider if you need a hot wallet at all. If you don't need to send funds, just accept them, you could probably use BIP32 to generate addresses. Downside is that this way is more complicated. You should probably bail out of your script if bitcoin-cli produces any errors at all. If your Bitcoin node can't figure out its ...


1

There's command specific help with electrum help <commandname>. If you run that for listaddresses you will see that the --receiving switch does what you want. So electrum listaddresses --receiving.


1

You need to use the decode flag -d: printf "5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ" | base58 -c -d | xxd -p 800c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d 72aa1d To have xxd output all on one line, give it a large column number -c flag: $ printf "5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ" | base58 -c -d | xxd -p -c ...


1

If this is your echo output: '{"mj2FrDhEomSzyQtRoGY78oVRPcQs5L5o95":0.00001, "mkxnkT3kx9dsFS8V3qYydpL1o5F5MfwCvM":0.00001}' Then you have too many quotes. When you run echo, you should see: {"mj2FrDhEomSzyQtRoGY78oVRPcQs5L5o95":0.00001, "mkxnkT3kx9dsFS8V3qYydpL1o5F5MfwCvM":0.00001} That's because the shell strips off the outer set of quotes; it does ...


Only top voted, non community-wiki answers of a minimum length are eligible