Comparing version 1.0.22 to 1.0.23
13
index.js
@@ -51,2 +51,15 @@ var CryptoJS = require('crypto-js') | ||
}, | ||
getVotesByAccount: (name, lastTs, cb) => { | ||
fetch(avalon.randomNode()+'/votes/'+name+'/'+lastTs, { | ||
method: 'get', | ||
headers: { | ||
'Accept': 'application/json, text/plain, */*', | ||
'Content-Type': 'application/json' | ||
} | ||
}).then(res => res.json()).then(function(res) { | ||
cb(null, res) | ||
}).catch(function(error) { | ||
cb(error) | ||
}) | ||
}, | ||
getAccounts: (names, cb) => { | ||
@@ -53,0 +66,0 @@ fetch(avalon.randomNode()+'/accounts/'+names.join(','), { |
{ | ||
"name": "javalon", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "javascript api for the avalon blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
321398
607
24