COSANTA MASTERNODE SETUP
01
Overview
- Install and fully synchronize the latest Cosanta Core wallet.
- Prepare collateral: 10,000 COSA for a regular masternode, or 40,000 COSA for an evo masternode.
- Prepare a VPS with Ubuntu LTS, at least 2 GB RAM, a public IPv4 address and open port 60606.
- Cosanta Core runs the masternode service directly; no additional companion daemon is required.
02
Prepare Cosanta Core wallet
- Download the latest Cosanta Core release from GitHub and wait until the wallet is fully synchronized.
- Encrypt the wallet, save the password offline, and make a wallet backup before sending collateral.
-
Create a fresh collateral address in the wallet console:
getnewaddress MN1 - Send the exact collateral amount to that address in one transaction and wait for confirmations.
03
Prepare VPS
- Use Ubuntu LTS, at least 2 GB RAM, a public IPv4 address and enough disk space for the blockchain.
-
Connect by SSH as root or with a sudo user:
ssh root@SERVER_IP -
Open the Cosanta P2P port:
ufw allow 60606/tcp ufw enable -
If the VPS is small, create a swap file:
fallocate -l 1G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile echo "/swapfile none swap sw 0 0" >> /etc/fstab
04
Configure Cosanta daemon
-
In the Cosanta Core wallet console generate a BLS key:
bls generate -
On the server create the data directory and configuration file:
mkdir -p ~/.cosanta nano ~/.cosanta/cosanta.conf
rpcuser=RPC_USER
rpcpassword=RPC_PASSWORD
rpcallowip=127.0.0.1
server=1
rest=1
listen=1
txindex=1
listenonion=0
daemon=1
maxconnections=700
masternodeblsprivkey=BLS_SECRET_KEY
externalip=SERVER_IP
Replace the placeholder values with your own RPC credentials, BLS secret key and server IP address. Cosanta does not need extra RPC fields for companion services.
-
Download the Linux archive, extract it and start the daemon:
wget https://github.com/cosanta/cosanta-core/releases/download/v20.1.1-cosa/cosantacore-20.1.1-x86_64-pc-linux-gnu.tar.bz2 tar -xjf cosantacore-*-x86_64-pc-linux-gnu.tar.bz2 cd cosantacore-*/bin ./cosantad
05
Register masternode
After the daemon is synchronized and the collateral transaction is confirmed, register the masternode from Cosanta Core.
-
Find collateral transaction hash and output index:
masternode outputs -
Create owner, voting, payout and fee addresses:
getnewaddress owner_key getnewaddress voting_key getnewaddress masternode_payouts getnewaddress pay_fees -
Prepare the ProRegTx transaction. Use your server address as SERVER_IP:60606.
protx register_prepare COLLATERAL_TX_HASH COLLATERAL_OUTPUT_INDEX SERVER_IP:60606 OWNER_ADDRESS OPERATOR_PUBLIC_KEY VOTING_ADDRESS 0 PAYOUT_ADDRESS FEE_SOURCE_ADDRESS -
Sign the prepared message with the collateral address:
signmessage COLLATERAL_ADDRESS SIGN_MESSAGE -
Submit the signed transaction:
protx register_submit PREPARED_TX SIGNATURE
06
Check status
After the transaction is mined, the masternode should appear in the deterministic masternode list and later on the live statistics page.