Comparing version 1.0.12 to 1.0.13
11
index.js
@@ -289,2 +289,13 @@ var CryptoJS = require('crypto-js') | ||
}, | ||
getRewards: (name, cb) => { | ||
fetch(avalon.randomNode()+'/distributed/'+name, { | ||
method: 'get', | ||
headers: { | ||
'Accept': 'application/json, text/plain, */*', | ||
'Content-Type': 'application/json' | ||
} | ||
}).then(res => res.json()).then(function(res) { | ||
cb(null, res) | ||
}) | ||
}, | ||
keypair: () => { | ||
@@ -291,0 +302,0 @@ let priv, pub |
{ | ||
"name": "javalon", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "javascript api for the avalon blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20750
484
23