I have a byproduct in my IOTAstrip (
http://github.com/ifinta/IOTAstrip ) project. A command line interface in Perl for IOTA. It is compatible with IRI 0.8.0.
The working commands are: (use with caution - it is beta also)
getinfo
getbalance
gettransaction
listtransactions
getbundle
addinput
addoutput
sendtx
All script give a help, if entered without parameters...
Please read the README.md...
For Debian (or Ubuntu) should simple to install - see dependecies in README.md.
Any comments welcome.
Example: Sending IOTA's...
ifinta@nockstein:~/iota/IOTAstrip$ ./addinput bundle.dat UVIDRCVKFJCFBVNDVYUCIGUTXNOTTAFDJHOJAVA9FXPOYUAP9FTUIARQEPLAMJZPDBFYCPLWHMYMIACFU -0.5
INPUT: UVIDRCVKFJCFBVNDVYUCIGUTXNOTTAFDJHOJAVA9FXPOYUAP9FTUIARQEPLAMJZPDBFYCPLWHMYMIACFU ===> -0.5000000000
ifinta@nockstein:~/iota/IOTAstrip$ ./addoutput bundle.dat YMBJXZJNNEKGOWZMNLJXZIBRBI9GXAWLPGUJKCCAZT9LAKOQNWUAVBAAYIVCAXYDHRATGKUNPMFTRUO9G
INPUT: UVIDRCVKFJCFBVNDVYUCIGUTXNOTTAFDJHOJAVA9FXPOYUAP9FTUIARQEPLAMJZPDBFYCPLWHMYMIACFU ===> -0.5000000000
OUTPUT: YMBJXZJNNEKGOWZMNLJXZIBRBI9GXAWLPGUJKCCAZT9LAKOQNWUAVBAAYIVCAXYDHRATGKUNPMFTRUO9G <=== REST
ifinta@nockstein:~/iota/IOTAstrip$ ./sendtx 192.168.1.66 999 HVF3oP5NOR3iDiQjodTM bundle.dat
INPUT: UVIDRCVKFJCFBVNDVYUCIGUTXNOTTAFDJHOJAVA9FXPOYUAP9FTUIARQEPLAMJZPDBFYCPLWHMYMIACFU ===> -0.5000000000
OUTPUT: YMBJXZJNNEKGOWZMNLJXZIBRBI9GXAWLPGUJKCCAZT9LAKOQNWUAVBAAYIVCAXYDHRATGKUNPMFTRUO9G <=== REST
Ok?[y/N]:y
UVIDRCVKFJCFBVNDVYUCIGUTXNOTTAFDJHOJAVA9FXPOYUAP9FTUIARQEPLAMJZPDBFYCPLWHMYMIACFU corresponding key?:
$VAR1 = {
'signaturesSecurityLevel' => 40,
'outputs' => [
{
'address' => 'YMBJXZJNNEKGOWZMNLJXZIBRBI9GXAWLPGUJKCCAZT9LAKOQNWUAVBAAYIVCAXYDHRATGKUNPMFTRUO9G',
'value' => '5000000000'
}
],
'weight' => 10,
'approvedTransactions' => [
'9Y9AHZHYPBNJWV9YLIFMAQZNALWCYZRGYXPMCTRPPYNYTJUVXMTCBNDOU9OAAWNAFLDUFRQCQIZRCA999',
'9Y9AHZHYPBNJWV9YLIFMAQZNALWCYZRGYXPMCTRPPYNYTJUVXMTCBNDOU9OAAWNAFLDUFRQCQIZRCA999',
'9Y9AHZHYPBNJWV9YLIFMAQZNALWCYZRGYXPMCTRPPYNYTJUVXMTCBNDOU9OAAWNAFLDUFRQCQIZRCA999'
],
'command' => 'generateBundle',
'messages' => [],
'inputs' => [
{
'key' => 'KIJMIGHMJU...SUQKHMUJAM',
'value' => '-5000000000'
}
],
'password' => 'HVF3oP5NOR3iDiQjodTM'
};
Generating Bundle. It may take some time... Please, be patient.
$VAR1 = {
'trytes' => [
'ZADQOIDMMLRXCLPQPAPJKHFSRLQTMJZOGBQQCRRXWPR9F9TAMPCOTPHSJT9FDOCBO9VTAL9HFOOOZMD9UYMBJXZJNNEKGOWZMNLJXZIBRBI9GXAWLPGUJKCCAZT9LAKOQNWUAVBAAYIVCAXYDHRATGKUNPMFTRUO9GEOIJLXM99999999999999999999RMPIQOMDE9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999Y9AHZHYPBNJWV9YLIFMAQZNALWCYZRGYXPMCTRPPYNYTJUVXMTCBNDOU9OAAWNAFLDUFRQCQIZRCA9999Y9AHZHYPBNJWV9YLIFMAQZNALWCYZRGYXPMCTRPPYNYTJUVXMTCBNDOU9OAAWNAFLDUFRQCQIZRCA9999Y9AHZHYPBNJWV9YLIFMAQZNALWCYZRGYXPMCTRPPYNYTJUVXMTCBNDOU9OAAWNAFLDUFRQCQIZRCA999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999J99999999999999999999999999RMPIQOMDE999999999999999999GORUTKCDO9GDKXXJZSHVIOYBLZO',
'ZADQOIDMMLRXCLPQPAPJKHFSRLQTMJZOGBQQCRRXWPR9F9TAMPCOTPHSJT9FDOCBO9VTAL9HFOOOZMD9UUVIDRCVKFJCFBVNDVYUCIGUTXNOTTAFDJHOJAVA9FXPOYUAP9FTUIARQEPLAMJZPDBFYCPLWHMYMIACFUVLRQOCN99999999999999999999RMPIQOMDE999999999999999999YXV9EFLWQZDCFTXNQVXIJMNHKROXRRLDJVTMONDTIEODIRYVCOLMXHNMBMHBAJGJFGJKDLDTQZ9IWAUPXHNMJWDHBNYAMCJZYJOQKYWRKVPHPFRWWHQFGGHGIICDYG9AAQMOHUMYYSZMUYXIRCXVDXDIUDGZKFSKUQFKLW9CIYWPTPLWCHHBAQRKMKPTPLCSBUYLMDMFUZLDZSKXZWEEVFZWTILXYYMPVCZWVOQNYWUQVFYQC9OMXMWOLOTESDIQNFCDOQZQDTKBDNSPOEQESEWLRHEBBDAXKAHWEZQVVNTJOGJIWPBND9JVUYDXJHQNKKTKHCAYALSZZWCSXJYVZL9FCLESHXHX9CVYYXJQYZTFKP9PCZGUQMDMEVUA99UTCWTFRJJOHNHGFMPAVIWQAEQHBQMXPQBNBKBRRUXXCJHQEEFPGMHFZHLBHBVLMGSIMJDSVTOZSQFAJ9QFX9VHGZMOUXFWXRGGHSLKRKCLRG9LPWIWYWQRZMNLDEJO9VQCCOLSGJORQNOGFBYYPIAUJPWZQSMBWEVHMQBPUMIIOWPLECAQVXEISEJPPFZFLKNVA9PEAFAXTJJLRTU9IBLSWILDMKLVTHJFXMLNXHJBYOQVYPLYXNNZPSEARDQIWRDBOQITHCBIO9IJCRBOCGQBXTFFCZAECIA9HGRBONPHQKGLFGHJFYUG9BLQOILYHRGHKM9S9AJUGQIMQZAXBOOXVYFWVGARQXLVYDAGIHNHDNNNTGEFXFZWTUQAODFCCHJCIBNGNTFXXBGYTDUY9KBGW9YLEYTVMYDMSYHDWILODKTZMFEYNBKCEP9CKVHDKMG9EB999TUQAODFCCHJCIBNGNTFXXBGYTDUY9KBGW9YLEYTVMYDMSYHDWILODKTZMFEYNBKCEP9CKVHDKMG9EB999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999J99999999999999999999999999RMPIQOMDE999999999999999999MRRHDQVUCWOCEQPNHMTX9LJFYRH'
],
'generationTime' => 83441
};
Broadcasting transactions...
$VAR1 = {
'neighbors' => 8
};
ifinta@nockstein:~/iota/IOTAstrip$