Installation

To get started with Dragonchain right away, create a managed node in just a few clicks on the Dragonchain managed platform. To get more control over a chain, it is possible to run an on-premises node.

Deployment

Dragonchain Managed Service Platform

To quickly create a L1 chain, create an account on our managed service platform. After logging in, click “Chains” on the left hand menu, then click “Create a managed chain”.

While the chain is creating, information about the chain is presented. Download the master authorization keys and store them somewhere safe. Keep this information private since it controls access to the chain. We recommend not using the master authorization keys when it isn’t necessary. Instead, create a new key pair.

Dragonchain Open Source Platform

To dive deeper into management and control of a chain, run a Dragonchain L1 locally. Installation of Dragonchain onto personal hardware is outside the scope of this guide, but you can learn more from the core documentation deployment guide.

Dragonchain CLI Tool

All examples in this tutorial use our CLI tool dctl. dctl allows users to quickly interface with chains from a terminal. It is useful for shell scripting with a Dragonchain and for running one-off commands. Setup requires Node v10 or greater.

Install using npm:

npm install -g dctl

Install using yarn:

yarn global add dctl

Verify dctl was installed properly by running the following command (your version may be different):

$ dctl --version
5.0.0

To run from source, clone the repository from our GitHub here.

Dragonchain SDKs

Dragonchain develops and maintains SDKs for interfacing with chains. We currently offer SDKs for Node.js, Python, and Golang.

Node.js SDK

The Node.js SDK requires Node v8 or greater.

Add to a Node.js project using npm:

npm install --save dragonchain-sdk

Add to a Node.js project using yarn:

yarn add dragonchain-sdk

Python SDK

The Python SDK requires python3.

Install for Python using pip:

python3 -m pip install -U dragonchain-sdk

Install for Python from source (Linux / MacOS):

git clone https://github.com/dragonchain/dragonchain-sdk-python.git
cd dragonchain-sdk-python
python3 -m pip install -U -r requirements.txt
./run.sh build
sudo ./run.sh install

Install for Python from source (Windows):

git clone https://github.com/dragonchain/dragonchain-sdk-python.git
chdir dragonchain-sdk-python
python3 -m pip install -U -r requirements.txt
python setup.py build
python setup.py install

Go SDK

Add to a Golang project:

go get https://github.com/dragonchain/dragonchain-sdk-go

Troubleshooting

Having issues with installation? Reach out to our developers on our slack channel. We are happy to assist!