How to Run PIRATE using CLI?

This article describes how you can start using PIRATE (ARRR) chain using command line interface (CLI) on different OS.

To get started with PIRATE (ARRR), you only need Komodo daemon on your machine. You can either download the Komodo pre-compiled binaries from GitHub and use the bundled komodod and komodo-cli in it, or you can also compile it on your machine. Follow this guide to compile in your own machine from Komodo Platform documentation website here.

Start PIRATE Chain

Command to run PIRATE blockchain and connect with the network.

Linux and macOS users:

./komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -addnode= &

Windows users:

komodod.exe -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -addnode=

NOTE: Although the -ac_halving above is still 77777, internally this number has been multiplied by 5.


Make sure to be on komodo dev branch to update PIRATE:

First, stop current PIRATE if running:
cd ~/komodo/src
./komodo-cli -ac_name=PIRATE stop

Now update komodod:
cd komodo
git checkout dev
git pull
./zcutil/ -j$(nproc)

When done, run the command above to start PIRATE again.

Mine PIRATE blockchain

Use -gen and -genproclimit=X to enable mining. Replace X with the number of CPU threads you want to use for mining PIRATE. Due to mining difficulty it is discouraged to use CPU to solo mine PIRATE. Please use a Pirate (ARRR) mining pool for better luck.

./komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -addnode= -gen -genproclimit=4

Add seed node IPs

Add seed nodes IP for better network connectivity. Example starting assetchain with 2 seed node IP
./komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -addnode= -addnode= &

Useful Wallet commands

# Get (transparent) wallet and blockchain info

./komodo-cli -ac_name=PIRATE getinfo

# Get (transparent) wallet information
./komodo-cli -ac_name=PIRATE getwalletinfo

# Get mining information
./komodo-cli -ac_name=PIRATE getmininginfo

# Generate a new Z/Private address
./komodo-cli -ac_name=PIRATE z_getnewaddress

# To backup the private key of a z address
./komodo-cli -ac_name=PIRATE z_exportkey "zaddr"

# Get z balance (hidden funds don’t show in transparent commands)
./komodo-cli -ac_name=PIRATE z_gettotalbalance

# To send mined coins to a z address
./komodo-cli -ac_name=PIRATE z_shieldcoinbase "fromaddress" "tozaddress" ( fee ) ( limit )

# Example 1:
./komodo-cli -ac_name=PIRATE z_shieldcoinbase "RHYDbB9ZtoqSaTvJqkCNd7EH9eLnvULSnr" "zcdYeSbZCnvcbKhUPMYWdMy9FVdgQ2y9fivhbWgCuPsbFJ5VycayAZwrgkC8dbyVZd1einoNjKBa8hsXy71B3aMNVpinvsa"

# Example 2 Combines all PIRATE in different t-addresses to 1 z-address:
./komodo-cli -ac_name=PIRATE z_shieldcoinbase "*" "zcdYeSbZCnvcbKhUPMYWdMy9FVdgQ2y9fivhbWgCuPsbFJ5VycayAZwrgkC8dbyVZd1einoNjKBa8hsXy71B3aMNVpinvsa"

# To send a transaction from your z address to another z address
./komodo-cli -ac_name=PIRATE z_sendmany "fromaddress" [{"address":... ,"amount":...},...] ( minconf ) ( fee )

# Example:
komodo-cli -ac_name=PIRATE z_sendmany "zcdYeSbZCnvcbKhUPMYWdMy9FVdgQ2y9fivhbWgCuPsbFJ5VycayAZwrgkC8dbyVZd1einoNjKBa8hsXy71B3aMNVpinvsa" '[{"address": "zcVHHtp5vTFDASaMoWXGYnPYq7n6xqwtYDFmN4F9UX4T88MscMJY9wQgyAMWpM4ttNXDyQHcFDGgegs3CBDQ9KNWvUXaaUA" ,"amount": 5.9999}]'

Scroll to Top