Bitcoin Tutorials - Herong's Tutorial Examples - v1.06, by Herong Yang
Access Bitcoin Test Network "-testnet"
This section describes what is Bitcoin Test Network -testnet.
Bitcoin Test Network (-testnet) is a network of peer nodes running the Bitcoin test blockchain, which allows users to send and receive transactions for testing purpose.
Here is how you can run your local Bitcoin Core Daemon to join the Bitcoin Test Network:
C:\>\local\bitcoin-0.15.1\bin\bitcoind -testnet
You should see "bitcoind.exe" process running in the background.
Here is how you can run some commands to interact with the Bitcoin Test Network through your local Bitcoin Core Daemon:
C:\>\local\bitcoin-0.15.1\bin\bitcoin-cli -testnet uptime 40651 C:\>\local\bitcoin-0.15.1\bin\bitcoin-cli -testnet getchaintips [ { "height": 1029998, "hash": "00000000000121674d133d45b91941c6168b4c19d32f529432a4c184174d0b86", "branchlen": 1029998, "status": "headers-only" }, { "height": 0, "hash": "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943", "branchlen": 0, "status": "active" } ] C:\>\local\bitcoin-0.15.1\bin\bitcoin-cli -testnet stop Bitcoin server stopping
You should see "bitcoind.exe" process stopped running, because of the last command.
Table of Contents
►Access Bitcoin Test Network "-testnet"
"bitcoin-cli getclock" Command
bitcoin-cli Transaction Commands
"bitcoin-cli encryptwallet" - Set Wallet Password
"bitcoin-cli walletpassphrase" - Unlock Wallet
"bitcoin-cli backupwallet" - Backup Wallet