Mac OS & Linux

How to Setup a Darknode via Digital Ocean (DO)

How to Setup a Darknode via Digital Ocean (DO) on Mac OS & Linux

The Darknode CLI is not backwards compatible with old Darknodes, so if you have ran an old darknode (Chaosnet or otherwise), you need to start fresh!

Trying to managing old backups with the new darknode-cli, it’s not going to work. The old Darknode CLI must be used to deregister old Darknodes, therefore you must completely deregister old Darknode first. You cannot upgrade your CLI until you have done this.

*If this is your first time running a Darknode start at Step 2.

Attention: New Mac computers with M1 chips are not currently supported at the moment.

Step 1: Destroy old Darknode(s)

  1. If you have any previously deployed Darknodes; deregister, refund and destroy by following these instructions.

  2. After this has been fully completed, delete the entire .darknode backup folder on your computer. It is no longer relevant if you have completed the above steps.

  3. Confirm the API token (that corresponds to the old Darknode) has been deleted via your VPS account.

Step 2: Starting Fresh | Create a Digital Ocean Account and API Token

  1. If you don't have one already, create an account on Digital Ocean:

  2. Enter your personal and payment information

  3. After confirming your email, you'll be taken to the Welcome screen. From here, navigate to your Control Panel.

  4. On the bottom left-hand side menu you will see the "Account" sub-heading.

    1. Click 'API'

    2. Click ‘Generate New Token’ with default settings, both write and read checked.

      1. If needed, follow the official DO Instructions for more detail:

    3. Save your API Token Address in a secure location! Make sure you keep these values secure, anyone with access to them will be able to control your Darknode.

    4. Move to the next step below.

Step 3: Install the Darknode CLI on Your Computer

  1. Open your Mac 'Terminal'

    1. Open your terminal by searching for 'Terminal' in the 'Launchpad' app

      1. If you already have a CLI installed from a previous Darknode, go here to update it and skip to step #4.

    2. Insert this text to install the CLI, by pasting: curl -sSfL | sh

  2. It will take a minute or two. Once successfully installed, you'll see some green text.

  3. Now, close the Terminal app and re-open.

  4. If everything goes well, you should see 3.0.14 when you run darknode --version command.

Step 4: Deploy your Darknode

  1. Open the Terminal app on your computer

    1. Then copy and paste the following: darknode up --name MY-FIRST-DARKNODE --do --do-token YOUR-API-TOKEN


    1. Inputting a name for your Darknode but make sure it has no spaces in it or is not too long.

    2. Input your Digital Ocean API Token found in step 2.

*Example of what this would look like: darknode up --name darknodeone --do --do-token 1111aca25cc77d84299e3b8a0f76f2ec33a27b1782adc2a7a96f0468116edf46

  1. Press enter and wait approximately 3-5 minutes while your Darknode is installed.

    1. Don’t touch anything, let the CLI works its magic and wait patiently!

    2. When completed, the CC should open automatically in your browser but you will also be provided a link (in green) within the terminal. If it doesn't open automatically in your browser, copy and paste (the relatively long green link) it into the web-browser. Either way it will take you to the new Command Center!

      1. Some tips to keep in mind

        1. Turn off all ad blockers (and "shields" if using Brave).

        2. If using a Ledger via MetaMask, make sure your “Contract Data” is turned on.

Step 5: Register and launch your Darknode on the Command Center (CC)

  1. Bookmark your CC Webpage!

  2. Before proceeding, make sure you have 100K REN in your MetaMask wallet along with at least 0.1 ETH (recommended amount) for your Darknode's GAS.

    1. Please be aware you must register using the CC with MetaMask. You can use Hardware wallets via MetaMask but we have seen issues in the past with drivers updates, etc.. so proceed with caution and make sure your contract data setting is turned on.

    Note: One cannot just send REN to your Darknode because this will not cause it to be registered and you will lose you REN.

  3. Sign into MetaMask as you normally would and ensure the above REN and ETH are in your account.

  4. Register your Darknode

    1. Click the ‘REGISTER YOUR DARKNODE’ button (top left) in the CC.

    2. Submit your 100K Ren via MetaMask instructions, sign transactions, etc.

    3. Wait a few minutes while your Darknode registers, sign the needed MetaMask transactions for GAS, etc.

    4. Once completed, you will be notified that your ‘Registration is in Progress’

    5. Wait patiently for your Darknode to be fully registered (can take up to 31 days)

    6. In the meantime, top-up your Darknode up with GAS via the ‘GAS BALANCE’ section

      1. Click the arrow ‘>’ and submit 0.1 ETH (recommended amount) for GAS.

    7. The CC will not function fully until the Darknode has been fully registered, so don't be alarmed if you explore the CC and buttons don't function properly. Just wait to explore until your registration is complete.

  5. Once you've added ETH to your Darknode, wait patiently, but in the interim:

    1. Back up your Darknode file on MAC OS but inputting this into your Terminal and pressing enter: cp -r ~/.darknode ~/Desktop/darknode-backup-2021XXXX (i.e XXXX = A date of your choice).

    2. A backup folder will then appear on your Desktop, save this somewhere safe!

  6. After the 31 day waiting period, check back on the CC to formally register.

Review the NETWORK INFORMATION tab on the right-hand side of the CC for details. The CC should also note that you Darknode is 'Registered' on the top-left. Step 6: Congrats, you're all done and remember to periodically check on your Darknode and refill it with ETH as needed.