Merge pull request #210 from prayank23/get-info

Add `-getinfo`
This commit is contained in:
Shannon Appelcline 2021-06-02 09:17:18 -10:00 committed by GitHub
commit 060e1419b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,6 +204,37 @@ Examples:
## 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:
`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 getmininginfo