|
@@ -303,15 +303,18 @@ router.get("/block/:blockHash", function(req, res) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
router.get("/address/:address", function(req, res) { |
|
|
router.get("/address/:address", function(req, res) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var address = req.params.address; |
|
|
var address = req.params.address; |
|
|
|
|
|
|
|
|
res.locals.address = address; |
|
|
res.locals.address = address; |
|
|
|
|
|
|
|
|
|
|
|
console.log("address is:" + address); |
|
|
//res.locals.result = {}; |
|
|
//res.locals.result = {}; |
|
|
|
|
|
|
|
|
const { spawn } = require("child_process"); |
|
|
const { spawn } = require("child_process"); |
|
|
|
|
|
|
|
|
const ls = spawn("/usr/local/bin/vivo-cli", [" -conf=/etc/masternodes/vivo_n1.conf \'{\"addresses\": [\"" + address + "\"]}\'"]); |
|
|
|
|
|
|
|
|
//const ls = spawn("/usr/local/bin/vivo-cli", [" -conf=/etc/masternodes/vivo_n1.conf \'{\"addresses\": [\"" + address + "\"]}\'"]); |
|
|
|
|
|
|
|
|
//const ls = spawn("ls", "-lah"); |
|
|
//const ls = spawn("ls", "-lah"); |
|
|
|
|
|
|
|
|