From af403d91b41abaea3a7ff95a974d136c417dac55 Mon Sep 17 00:00:00 2001 From: coldstar Date: Tue, 25 May 2021 15:25:05 -0700 Subject: [PATCH] 05/25/2021 03:25:05 PM MST --- routes/baseActionsRouter.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index 09aec14..f6d71f4 100755 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -310,12 +310,15 @@ router.get("/address/:address", function(req, res) { res.locals.address = address; console.log("address is:" + address); + + console.log('/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\''); + res.locals.result = {}; const { exec } = require('child_process'); - //var yourscript = exec('/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'', - var yourscript = exec('whoami', + var yourscript = exec('/usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getaddressbalance \'{\"addresses\": [\"" + address + "\"]}\'', + //var yourscript = exec('whoami', (error, stdout, stderr) => { console.log(stdout); console.log(stderr);