Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.75 KB

setup-dragonchain-sdk.md

File metadata and controls

49 lines (28 loc) · 1.75 KB

Let’s Play with the Dragonchain SDK

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:

  1. Make sure nodejs is installed

    sudo apt update && sudo apt install npm

  2. 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!

  • 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)
  1. Install the dragonchain sdk:

    sudo npm i dragonchain-sdk --save

  2. Create the queryblocks.js script provided in the resources (no changes needed)

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

  4. Run the queryblocks.js script:

    node queryblocks.js

  5. Profit.