NKN Commercial

NKN is the new kind of P2P network connectivity protocol & ecosystem powered by a novel public blockchain. Our open source node software allows Internet users to share network connections and unused bandwidth for rewards. By running an NKN node, you become part of the NKN network community helping to build the decentralized Internet so everyone can enjoy secure, low cost, and universally accessible connectivity.

More Information

Software Included

Package Version License
nkn 2.0 Apache 2

Creating an App using the Control Panel

Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.

Deploy to DO

Creating an App using the API

In addition to creating a Droplet from the NKN Commercial 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB NKN Commercial Droplet in the SFO2 region, you can use the following curl command. You need to either save your API access token) to an environment variable or substitute it in the command below.

curl -X POST -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer '$TOKEN'' -d \
        '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image": "nknfullnode-18-04"}' \
        "https://api.digitalocean.com/v2/droplets"

Getting Started After Deploying NKN Commercial

Quickstart

After you create a NKN Commercial One-Click Droplet, nknd (NKN daemon) will be launched automatically by nkn-commercial as user nkn, and your Droplet will be part of the NKN relay network without any configurations. There are a few ways you can check the status of your node:

  • The easiest way is to use a cloud service (such as nknX). You just need the public IP address of your Droplet in order to check its status.
  • You can also use the command line tool nknc to interact with your node, including checking its status. You can download the latest nknc release or build from source. After that you can use ./nknc --ip <your Droplet public ip address> info -s to view the status of your node. Note that the function of nknc is limited if you are not running it from the Droplet.
  • If you want full control of your node, you need to ssh into your Droplet. The source code as well as configurations are located at /home/nkn/nkn-commercial/services/nkn-node/. When the NKN Full Node One-Click Droplet is started for the first time, a NKN wallet and its password will be generated automatically under /home/nkn/nkn-commercial/services/nkn-node/ named wallet.json and wallet.pswd respectively. Please take care to protect (and back up if you don’t specify a beneficiary address) both of these files since they are the only things one needs to access and control your account. If your wallet is lost you will lose access to your account, and if your wallet is copied by a malicious 3rd party you may lose control of your wallet and its contents. Therefore, it is important that you keep these files safe.

Next Steps

For more information on NKN Full Node, please see the Github. You can use the NKN network to transmit any data from peer to peer or transfer NKN tokens using nkn-sdk-js, nkn-sdk-go or other nkn sdk implementations.

Please join NKN Discord group for more technical support and discussions.