From 241d4d78c840cc19ea5b3eb2e097be9f1b2fa351 Mon Sep 17 00:00:00 2001 From: Gautham Ganesh Elango Date: Wed, 1 Jul 2020 15:09:08 +1000 Subject: [PATCH] updated --- 18_3_Accessing_Bitcoind_with_NodeJS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/18_3_Accessing_Bitcoind_with_NodeJS.md b/18_3_Accessing_Bitcoind_with_NodeJS.md index 7f4bd11..196bf5e 100644 --- a/18_3_Accessing_Bitcoind_with_NodeJS.md +++ b/18_3_Accessing_Bitcoind_with_NodeJS.md @@ -164,6 +164,15 @@ Output: mtGPcBvRPZFEHo2YX8un9qqPBydhG82uuZ ``` +This example shows how we can use the same flags as ```bitcoin-cli``` in BCRPC. The example above would look like this from the command line: + +``` +$ bitcoin-cli getnewaddress -addresstype legacy +mtGPcBvRPZFEHo2YX8un9qqPBydhG82uuZ +``` + +In BCRPC ```getnewaddress``` is in camelCase (```getNewAddress```) and the flags are normally separated by spaces are put in strings and separated by commas. + ### List transactions We can list our previous transactions and view information about transactions such as amount and number of confirmations: