Permalink
Browse files

added getvotelist and getmasternodelist

  • Loading branch information...
Alan Rudolf
Alan Rudolf committed Dec 7, 2017
1 parent adbbedd commit afead8e1537920cd6df1f5492dc8fca240acaef2
Showing with 10 additions and 8 deletions.
  1. +1 −3 .gitignore
  2. +4 −4 app.js
  3. +2 −0 lib/locale.js
  4. +2 −0 locale/en.json
  5. +1 −1 package.json
@@ -27,6 +27,4 @@ node_modules
settings.json
.idea
*~
*.ico
*.png
.DS_Store
8 app.js
@@ -18,7 +18,7 @@ var app = express();
chaincoinapi.setWalletDetails(settings.wallet);
if (settings.heavy != true) {
chaincoinapi.setAccess('only', ['getinfo', 'getnetworkhashps', 'getmininginfo','getdifficulty', 'getconnectioncount',
'getmasternodecount', 'getmasternodecountonline', 'getblockcount', 'getblockhash', 'getblock', 'getrawtransaction',
'getmasternodecount', 'getmasternodecountonline', 'getmasternodelist', 'getvotelist', 'getblockcount', 'getblockhash', 'getblock', 'getrawtransaction',
'getpeerinfo', 'gettxoutsetinfo']);
} else {
// enable additional heavy api calls
@@ -34,9 +34,9 @@ if (settings.heavy != true) {
getmaxmoney - Returns the maximum possible money supply.
*/
chaincoinapi.setAccess('only', ['getinfo', 'getstakinginfo', 'getnetworkhashps', 'getdifficulty', 'getconnectioncount',
'getmasternodecount', 'getmasternodecountonline', 'getblockcount', 'getblockhash', 'getblock', 'getrawtransaction',
'getmaxmoney', 'getvote', 'getmaxvote', 'getphase', 'getreward', 'getnextrewardestimate', 'getnextrewardwhenstr',
'getnextrewardwhensec', 'getsupply', 'gettxoutsetinfo']);
'getmasternodecount', 'getmasternodecountonline', 'getmasternodelist', 'getvotelist', 'getblockcount', 'getblockhash',
'getblock', 'getrawtransaction', 'getmaxmoney', 'getvote', 'getmaxvote', 'getphase', 'getreward', 'getpeerinfo',
'getnextrewardestimate', 'getnextrewardwhenstr', 'getnextrewardwhensec', 'getsupply', 'gettxoutsetinfo']);
}
// view engine setup
app.set('views', path.join(__dirname, 'views'));
@@ -85,8 +85,10 @@ exports.api_calls = "API Calls",
exports.api_getnetworkhashps = "Returns the current network hashrate. (hash/s)",
exports.api_getdifficulty = "Returns the current difficulty.",
exports.api_getconnectioncount = "Returns the number of connections the block explorer has to other nodes.",
exports.api_getmasternodelist = "Returns the complete master node list.",
exports.api_getmasternodecount = "Returns the total number of master nodes on the network.",
exports.api_getmasternodecountonline = "Returns the number of master nodes on the network that are currently online.",
exports.api_getvotelist = "Returns the current vote list.",
exports.api_getblockcount = "Returns the number of blocks currently in the block chain.",
exports.api_getblockhash = "Returns the hash of the block at ; index 0 is the genesis block.",
exports.api_getblock = "Returns information about the block with the given hash.",
@@ -90,8 +90,10 @@
"api_getnetworkhashps": "Returns the current network hashrate. (hash/s)",
"api_getdifficulty": "Returns the current difficulty.",
"api_getconnectioncount": "Returns the number of connections the block explorer has to other nodes.",
"api_getmasternodelist": "Returns the complete master node list.",
"api_getmasternodecount": "Returns the total number of master nodes on the network.",
"api_getmasternodecountonline": "Returns the number of master nodes on the network that are currently online.",
"api_getvotelist": "Returns the current vote list.",
"api_getblockcount": "Returns the current block index.",
"api_getblockhash": "Returns the hash of the block at ; index 0 is the genesis block.",
"api_getblock": "Returns information about the block with the given hash.",
@@ -15,7 +15,7 @@
"body-parser": "~1.0.0",
"debug": "~0.7.4",
"jade": "~1.3.0",
"chaincoin-node-api": "1.0.1",
"chaincoin-node-api": "1.0.2",
"request": "2.74.0",
"jsonminify": "0.2.3",
"mongodb": "2.0.45",

0 comments on commit afead8e

Please sign in to comment.