A client-side transactions library for Crypti. Allows transactions to be sent from within the browser, using a simple API.
git clone [email protected]:karmacoma/crypti-js.git
cd crypti-js
npm install
npm test
Tests written using mocha + schedule.js.
Each function call has secondSecret parameter, this parameter is optional.
Send 1000 XCR to 1859190791819301C
var crypti = require('crypti-js');
var transaction = crypti.transaction.createTransaction("1859190791819301C", 1000, "secret", "secondSecret");
var crypti = require('crypti-js');
var transaction = crypti.transaction.createTransaction("secret", "secondSecret");
var crypti = require('crypti-js');
var transaction = crypti.transaction.createDelegate("secret", "username", "secondSecret");
var crypti = require('crypti-js');
var transaction = createVote("secret", ["+58199578191950019299181920120128129"], "secondSecret");
All transactions are sent to /api/peer/transactions
using the POST
method.
Example:
Method: POST
Content-Type: application/json
{
"transaction" : {
...
}
}
- Boris Povod [email protected]
- Olivier Beddows [email protected]
MIT