Author

Topic: guide to user bitcoind from command line with examples (Read 538 times)

newbie
Activity: 36
Merit: 0
Hi everybody.

I'd like to find a simple guide with examples to use bitcoind from linux command line.
Can't find.
Is there something around?
api requests are not so intuitive



i wrote a bash script to resend a transaction like this in automatic mode:
help please, not on the script, but to search a good guide :- )


TX=$(./litecoind -datadir=/home/superuser/.litecoin2 listunspent | grep txid | cut -f 4 -d '"')
ADD=$(./litecoind -datadir=/home/superuser/.litecoin2 listunspent | grep address | cut -f 4 -d '"')
VOU=$(./litecoind -datadir=/home/superuser/.litecoin2 listunspent | grep vout | cut -f 2 -d ':' | cut -f 1 -d
 "," )
AMT=$(./litecoind -datadir=/home/superuser/.litecoin2 listunspent | grep mount | cut -f 2 -d ':' | cut -f 1 -

NUOVA=$(./litecoind -datadir=/home/superuser/.litecoin2 createrawtransaction '[{"txid" : "'$TX'", "vout" : '"$VOU"'}]' '{"LUsG6s8QMmiBzCdwjREZCXT421a9TP2ydx": '"$AMT"'}')

echo $NUOVA
./litecoind -datadir=/home/superuser/.litecoin2 signrawtransaction $NUOVA
./litecoind -datadir=/home/superuser/.litecoin2 sendrawtransaction $NUOVA

 Wink
Jump to: