Bitcoin Forum
September 27, 2024, 11:23:48 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: guide to user bitcoind from command line with examples  (Read 533 times)
prgiorgio (OP)
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile
June 12, 2014, 03:46:12 PM
 #1

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!