First, you need to install the go programming language, how to do it is mostly outside the scope of this website but you can learn more here:
Next you will need to make sure you have git installed. The first thing to do is check whether you have it installed already:
Install the components
Once you have golang and git fully installed and set up, you can use the following commands to install pktd, wallet and btcctl.
git clone github.com/pkt-cash/pktd cd pktd ./do
Now, you can launch pktd:
This should show some output such as the following:
2019-08-16 13:47:56.526 [INF] SYNC: Processed 843 blocks in the last 10.01s (843 transactions, height 843, 2019-08-16 05:56:50 +0000 UTC)
This tells you that it’s properly syncing the chain. In another window, you can check the status of your node.
Check the Block Explorer to see the most recent block.
Setup the wallet
First you’ll need to create a wallet
Then once it is created, launch it
Now in another window, you can interact with the wallet. First you might want to create for yourself an address:
./btcctl --wallet getnewaddress
Or get your current balance:
./btcctl --wallet getbalance
To send PKT to somebody, you need to first unlock your wallet. In this example, we’re keeping the wallet unlocked for only 60 seconds, you can change the number at the end to your liking.
./btcctl --wallet walletpassphrase <password you used when creating wallet> 60
Then send cjd a 10 pkt tip.
./btcctl --wallet sendtoaddress pP6Vh6GiL4HsMfcPby5xHQTyBUApd7mewg 10
For an exhaustive list of all the RPC calls you can make, use:
./btcctl -lBegin Mining PKT Details