Crypti Pure JS Transactions library. Send transactions from browser. Yeah, yeah!
To installation run:
npm install crypti-js
To run tests use command:
npm test
Tests written in mocha + schedule.js
Each function call has secondSecret parameter, this parameter is optional.
Send 1000 XCR to 1859190791819301C
var crypti = require('crypti');
var transaction = crypti.transaction.createTransaction("1859190791819301C", 1000, "secret", "secondSecret");
var crypti = require('crypti');
var transaction = crypti.transaction.createTransaction("secret", "secondSecret");
var crypti = require('crypti');
var transaction = crypti.transaction.createDelegate("secret", "username", "secondSecret");
var crypti = require('crypti');
var transaction = createVote("secret", ["+58199578191950019299181920120128129"], "secondSecret");
All transactions most go to /peer/transactions
with method "POST"
Example:
Method: POST
Content-Type: application/json
{
"transaction" : {
.....
}
}
MIT