gincoin-api
v1.0.0
Published
A Node.js wrapper for GINCOIN API
Downloads
8
Readme
A Simple to use Node.js wrapper for GIN Coin API.
const GinAPI = require('../ginApi');
const ginApi = new GinAPI({ address: /* masternode address here */ });
ginApi.getAddress()
.then(body => {
console.log(JSON.stringify(body, null, 3));
})
.catch(err => {
console.log(`Error code: ${err.code}`);
})
ginApi.getRawTransaction({ txid: /* a unique txid */, decrypt: true /* enable decrypt */})
.then(body => {
console.log(JSON.stringify(body, null, 3));
})
.catch(err => {
console.log(`Error code: ${err.code}`);
})