This commit is contained in:
Gautham Ganesh Elango 2020-07-01 15:09:08 +10:00
parent f6b5fac2f8
commit 241d4d78c8
No known key found for this signature in database
GPG Key ID: 420E32E35B3FDBA2

View File

@ -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: