Services investing MasterNode Statistic Exchange COSA Block Explorer FAQ Donate now

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.

Prepare Cosanta Core wallet

  1. Download the latest Cosanta Core release from GitHub and wait until the wallet is fully synchronized.
  2. Encrypt the wallet, save the password offline, and make a wallet backup before sending collateral.
  3. Create a fresh collateral address in the wallet console:
    getnewaddress MN1
  4. Send the exact collateral amount to that address in one transaction and wait for confirmations.

Prepare VPS

  1. Use Ubuntu LTS, at least 2 GB RAM, a public IPv4 address and enough disk space for the blockchain.
  2. Connect by SSH as root or with a sudo user:
    ssh root@SERVER_IP
  3. Open the Cosanta P2P port:
    ufw allow 60606/tcp
    ufw enable
  4. 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

Configure Cosanta daemon

  1. In the Cosanta Core wallet console generate a BLS key:
    bls generate
  2. 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.

  1. 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

Register masternode

After the daemon is synchronized and the collateral transaction is confirmed, register the masternode from Cosanta Core.

  1. Find collateral transaction hash and output index:
    masternode outputs
  2. Create owner, voting, payout and fee addresses:
    getnewaddress owner_key
    getnewaddress voting_key
    getnewaddress masternode_payouts
    getnewaddress pay_fees
  3. 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
  4. Sign the prepared message with the collateral address:
    signmessage COLLATERAL_ADDRESS SIGN_MESSAGE
  5. Submit the signed transaction:
    protx register_submit PREPARED_TX SIGNATURE

Check status

After the transaction is mined, the masternode should appear in the deterministic masternode list and later on the live statistics page.