Note: Don’t do this ON your dragonchain server!
It probably WOULDN'T hurt, but why mess with something that’s working? 😄
Off we go:
-
Make sure nodejs is installed
sudo apt update && sudo apt install npm
-
Download and edit our credentials file
-
Insert YOUR credentials gathered from the installation process in the sample credential file
-
Follow the instructions on the Dragonchain SDK website for where to put it!
-
For a linux box, it’s ~/.dragonchain/credentials
-
See more here:
-
If downloading directly, click here.
-
If downloading from the command line:
wget http://dragonchain-community.github.io/dragonchain-uvn-install-guide/resources/credentials
-
-
Make edits, then CTRL+O to save, CTRL+X to exit
- Note that your endpoint URL should be the FULL url and port that you used when installing your node
- Example for Linode users: http://12.34.56.78:30000 (replacing 12.34.56.78 with your actual IP)
-
Install the dragonchain sdk:
sudo npm i dragonchain-sdk --save
-
Create the queryblocks.js script provided in the resources (no changes needed)
-
Download the queryblocks.js script:
-
If downloading directly, click here.
-
If downloading from the command line:
wget http://dragonchain-community.github.io/dragonchain-uvn-install-guide/resources/queryblocks.js
-
-
Run the queryblocks.js script:
node queryblocks.js
-
Profit.