in 0.6.25 there is magical tool called nem-console - for the brave ones
[img width=320 height=215]http://replygif.net/thumbnail/931.gif[/img]
as I've said, it's for the brave ones...
watch out what you're doing, this is very experimental tool, and very fragile...
you MIGHT loose some xem in the process,
every other command starts with following command
[code]
// very brief help
java -cp ".;./*;../libs/*" org.nem.console.Main
[/code]
[code]
// generate some cold accounts, save them into wallet protected
// with pass "superSecret"
.... generate -output cold.dat -pass superSecret -prefixes NAXA,NCYC
> 'NAXA' -> 'NAXAI5MFHCAHM6UBY2C7ATKULEA2EETZI5U57ZXA'
> 'NCYC' -> 'NCYC2B4JVU5QMJF36KDBCE6STZINI4JHFC6WKCK5'
> Writing encrypted data to: cold.dat
[/code]
(suggested to make copy of this file...)
[code]
// show the keys, you can
.... dump -input cold.dat -pass superSecret
> Reading encrypted data from: cold.dat
> [NAXA]
> address: NAXAI5MFHCAHM6UBY2C7ATKULEA2EETZI5U57ZXA
> public: 376e407fab0545005726a97f234523009c5fed1215f0589cc6cb0a71bd6d99cf
> [NCYC]
> address: NCYC2B4JVU5QMJF36KDBCE6STZINI4JHFC6WKCK5
> public: 1833c6f515e20e80655e1d5cb2507d30fcab7922a9fd3796e536a681988de40a
[/code]
Before we'll be able to make any fund, you need to know current network time,
you can check it by visiting some NIS node: http://localhost:7890/time-sync/network-time
It will return something like: [tt]{"sendTimeStamp":385748516,"receiveTimeStamp":385748516}[/tt]
You must divide the value by 1000 so I'm gonna use 385748
[code]
// generate binary file, that contains transaction data
// send 1 NEM to NAMESUOZPJI7F6WDMQ35QTGR2O7IQLHHCMKCS6AP
// this is a single line OFC
.... transfer -input cold.dat -pass superSecret -sender NAXA -recipient NAMESUOZPJI7F6WDMQ35QTGR2O7IQLHHCMKCS6AP
-amount 1000000 -time 385748 -output transaction.bin
> Reading encrypted data from: cold.dat
> transfer (1000000) 'NAXAI5MFHCAHM6UBY2C7ATKULEA2EETZI5U57ZXA' -> 'NAMESUOZPJI7F6WDMQ35QTGR2O7IQLHHCMKCS6AP'
> Writing transaction data to: transaction.bin
> Created transaction:
> type: 257
> version: 1744830465
> sender: NAXAI5MFHCAHM6UBY2C7ATKULEA2EETZI5U57ZXA
> fee: 9000000
[/code]
Now you need to propagate your transaction over the network, example using curl
[code]
// this is a single line OFC
curl.exe --request POST --data-binary @transaction.bin --header "Content-Type: application/binary"
http://somenisnode:7890/transaction/announce
> {"innerTransactionHash":{},"code":5,"type":1,"message":"FAILURE_INSUFFICIENT_BALANCE",
> "transactionHash": {"data":"c4d3216d7508caa8167ca60b92344098c62dcbdf328ea0735efdc6df20753437"}}
[/code]
In this case account was empty, but if everything went ok, curl should respond with SUCCESS.