Add -getinfo

This commit is contained in:
Prayank 2021-06-02 18:17:14 +05:30
parent a398b0c72c
commit d73d4cc822

View File

@ -204,6 +204,37 @@ Examples:
## Optional: Know Your Bitcoin Info ## Optional: Know Your Bitcoin Info
A variety of bitcoin-cli commands can give you additional information on your bitcoin data. The most general ones are: A variety of bitcoin-cli commands can give you additional information on your bitcoin data. The most general ones are:
`bitcoin-cli -getinfo` returns information from different RPCs (user-friendly)
```diff
$ bitcoin-cli -getinfo
! Chain: test
Blocks: 1977694
Headers: 1977694
Verification progress: 0.9999993275374796
Difficulty: 1
+ Network: in 0, out 8, total 8
Version: 219900
Time offset (s): 0
Proxy: N/A
Min tx relay fee rate (BTC/kvB): 0.00001000
@@ Wallet: ""@@
Keypool size: 1000
Unlocked until: 0
Transaction fee rate (-paytxfee) (BTC/kvB): 0.00000000
# Balance: 0.02853102
- Warnings: unknown new rules activated (versionbit 28)
```
Other commands to get information about blockchain, mining, network, wallet etc.
``` ```
$ bitcoin-cli getblockchaininfo $ bitcoin-cli getblockchaininfo
$ bitcoin-cli getmininginfo $ bitcoin-cli getmininginfo