From fb4fabe88ebe0c775b1e0d346c7a35198443e5e5 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Wed, 2 Sep 2020 14:08:35 -1000 Subject: [PATCH] Update 17_3_getinfo.js --- src/17_3_getinfo.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/17_3_getinfo.js b/src/17_3_getinfo.js index 3971724..f15e31b 100644 --- a/src/17_3_getinfo.js +++ b/src/17_3_getinfo.js @@ -1,5 +1,6 @@ const RpcAgent = require('bcrpc'); -agent = new RpcAgent({port: 18332, user: 'StandUp', pass: '6305f1b2dbb3bc5a16cd0f4aac7e1eba'}); +agent = new RpcAgent({port: 18332, user: 'StandUp', pass: '6305f1b2dbb3bc5a16cd0 +f4aac7e1eba'}); agent.getBlockCount(function (err, blockCount) { if (err) @@ -10,6 +11,12 @@ agent.getBlockCount(function (err, blockCount) { if (err) throw Error(JSON.stringify(err)); console.log(hash.result); - }) + }); + agent.getWalletInfo(function (err, walletInfo) { + if (err) + throw Error(JSON.stringify(err)); + console.log(walletInfo.result); + }); + });