A tool for signing an Aion transaction offline.
ant
You can find the jar file to embed in your project in the newly created dist
directory.
byte[] signedTransaction = new SignedTransactionBuilder()
.privateKey(...)
.destination(...)
.senderNonce(...)
.data(...)
.energyLimit(...)
.energyPrice(...)
.buildSignedTransaction();
These signed bytes can be sent to the blockchain via the RPC sendRawTransaction method.
The majority of this code was taken from another Aion offline signing tool by arajasek, available at this github repository. The primary difference between the two tools is that arajasek's tool both creates the signed transaction and sends it to a node, whereas this tool only creates the transaction itself and nothing more.