Mining cryptocurrency on the cloud is much easier than building your own hardware. Cloud hosting usually comes at a higher cost and requires contracts, and service providers can charge extra fees for bandwidth usage. Making things more difficult, some cloud providers are shutting off mining operations at will. Crypto-mining projects like PKT, are looking for better cloud providers and now they can run on Akash Network, the world’s first open-source and decentralized cloud marketplace.
PKT is a Bitcoin fork using PacketCrypt, a “bandwidth-hard,” proof-of-work blockchain that requires bandwidth and CPU to mine. Miners use idle CPU time to generate small messages called announcements and broadcast them to block miners who pay for them. PKT announcement miners and block miners collaborate to connect bandwidth from their local Internet connections and build a global, decentralized edge network. The PKT Network is designed to enable high-speed, low-cost Internet access without requiring a corporate ISP.
Akash Network helps miners find and lease cloud-hosted CPU and bandwidth from data centers at a lower cost than traditional cloud providers. PKT miners operating on Akash spend 50% less compared to centralized cloud providers. Akash customers also reduce the risk of having operations shut down by providers. While providers ultimately decide if they want to stop bidding on a deployment, the providers on Akash Network are crypto-friendly and benefit by monetizing their underutilized hardware infrastructure on Akash’s marketplace.
Performance is critical to miners, and the team at Chandra Station found Akash was far more performant than Amazon Web Services (AWS) in a side-by-side comparison. We asked several experienced miners from the PKT community to validate the results. After further testing by the community, we found that miners on Akash produce about 2x the amount of PKT as the AWS (c4.2xlarge) EC2 instance with 8 cores. See our performance results and share your results on the Akash Community.
Supporting the PKT ecosystem is mutually beneficial to PKT and Akash. Akash’s community can deploy infrastructure towards PKT’s mission to decentralize access to the Internet and also profit by monetizing bandwidth resources.
Choosing the Ideal Configuration for PKT
When choosing a configuration for PKT mining in the cloud, a higher amount of vCPU cores will yield more PKT, but this performance comes at a higher cost paid in Akash Token (AKT). Akash’s CTO, Adam Bozanovich, looked at the results of the performance testing with various CPU configurations to find the ideal configuration that produces the most PKT for the least AKT spent.
The ideal configuration for PKT miners is 10 vCPU, 1 GB RAM, 1 GB storage. Configurations with less than 10 vCPU do not yield as much PKT and consume excess RAM and storage.
Configurations with 1 core running on 10 miners still produce a similar amount of PKT, but the 10 core miner produced a better price to performance ratio.
Visit the Akash Community to find more guides, ask for help, and connect with other PKT miners. You can also join the Akash Discord server to chat with us live.
Mining is as easy as 1, 2, 3
This article from Chandra Station will walk you through how to deploy a PKT announcement miner on the Akash Network. There are three steps to a successful deployment:
- Creating a PKT wallet.
- Create a configuration file, using Akash’s stack definition language (SDL).
- Deploy the PKT miner on Akash.
Step 1: Create Your PKT Wallet
There are PKT wallets for Windows, macOS and command-line. Visit pkt.cash and pkt.world (Windows only) to try out the wallets that support mining.
Microsoft Windows
- Download the most recent zip archive suffixed with -windows.zip available from pktd releases page: (e.g. pktd-v1.3.1-windows.zip).
- Go to the Downloads directory.
- Unarchive the content of the file.
- Open the command prompt.
- Type cd Downloads to change directory to the downloads folder.
MacOS and Linux
- Download one of the most recent packages available for Linux or macOS from pktd releases page: (e.g. pktd-v1.3.1-macos.pkg).
- Install pktwallet and other utilities by clicking on the package icon in the Finder.
For Linux
- Download one of the following packages:
- pktd-v1.3.1-linux.deb (Debian or Ubuntu).
- pktd-v1.3.1-linux.rpm (Fedora or RedHat).
- pktd AUR package (Arch linux or Manjaro).
- Install pktwallet and other utilities by clicking on the appropriate package icon or running an installation command.
Creating a wallet
To create a new PKT wallet, use the pktwallet — create command:
For Mac: pktwallet --create
For Windows: ./bin/pktwallet.exe --create
You will be prompted to follow a few steps, make sure you write your seed words on paper so that you can recover your funds even if your computer is damaged.
Run PKT wallet
After creating your wallet, you can launch pktwallet with:
For Mac: pktwallet
For Windows: ./bin/pktwallet
Watch the output from the logs and when you see a log line like this:
Compare the height number in the log line (e.g. 702781) to the number in the pkt block explorer to see when your wallet is up to date.
You may leave pktwallet running in the background or start it only when needed.
Creating a new PKT address
While pktwallet is running in the background, open a new terminal window, change directory again if needed, and run the following command:
For Mac: pktctl --wallet getnewaddress
For Windows: ./bin/pktctl.exe --wallet getnewaddress
You should see a series of numbers and letters beginning with pkt1, this is your address which you can use for receiving coins.
NOTE: Every time you use getnewaddress, the address you receive must be remembered by pktwallet forever so only use it when you actually need an address.
You now have a PKT wallet address and we can move on to step two.
Step 2: Create Your Configuration File
When deploying on Akash, miners define the deployment services, data centers, requirements, and pricing parameters, in a “manifest” - a configuration file that may end in .yml
or .yaml
. This configuration file follows the YAML standard and is very similar to Docker Compose files. The file is written in a human-friendly language called Stack Definition Language (SDL). This SDL file is a form to request resources and declare deployment attributes.
Below is an example configuration file written in the Akash stack definition language (SDL). The file has four sections: version, services, profiles, deployment. Just change the wallet address in the services section and you are good to go, or modify it to your taste.
Download the file or copy the contents below and save it to a new file named **deploy.yml**
.
Step 3: Deploy Your Miner to Akash
If you are new to Akash Network, you will need to install Akash and set up your wallet, and get some AKT to fund your deployments. Head over to the Quick Start Guide to get started. It takes just a few minutes to install Akash, and just seconds to create a wallet and add a certificate to the Akash blockchain, enabling you to deploy to Akash.
We recommend using the amazing new Akashlytics Deploy Tool for an easy-to-use Windows or Mac OS tool to deploy. But we know you are a rockstar, and you’ll probably want to use the CLI, so keep reading.
Before you can create a deployment, a certificate must first be created. Your certificate needs to be created only once per account and can be used across all deployments. To do this, run:
If you see an error adding your certificate to the blockchain, try again! Now to deploy on Akash, run:
After that command, a string of JSON will appear in your terminal/command prompt.
Find and take note of your DSEQ value in bold above. This is your deployment sequence number and identifies your miner on the network, and it will be used in the commands that follow.0
{“key”:“dseq”,“value”:“1696540”}
Note, if you just followed the Quick Start Guide, you might run into an error such as “deployment exists.” What happened is this DSEQ number was stored as an environmental variable in your shell terminal. You should clear it from memory by running this command:
unset AKASH_DSEQ
Next, run:
Create a market order.
Acquire a list of bids.
Select a bid from a provider.
Confirm your lease is open.
Send the manifest.
Ensure the miner is running by looking at your logs.
Another great way to see how much PKT you are mining is by visiting the block explorer and inputting your PKT wallet address.
You Should Now be Mining PKT
Not only is it cheaper to run a PKT miner on Akash but the PKT yield is also several times higher than what you would get running on AWS. Running the PKT miner in one of Akash’s cloud containers, with a single core, demonstrated twice the yield as an eight-core server running on AWS EC2.
How to Get Help
Visit the Akash Community to find more guides, ask for help, and connect with other PKT miners. You can also join the Akash Discord server to chat with us live and ask for support in the #deployments channel.