console-cowboy / DAppNodePackage-ropsten

DAppNode Package - Ropsten chain for DAppNode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ropsten Testnet DAppNode package

DAppNodeStore Available

Website dappnode.io Documentation Wiki GIVETH Campaign RIOT DAppNode Twitter Follow

Dappnode package responsible for providing the Rinkeby chain ( based on go-ethereum v1.8.27)

Aragon Package Manager Repo at 0x031340b7aA2C5c28719894F3BacddEaD5e7F2987

You can use this package without installing it in your DAppNode following these instructions:

Prerequisites

  • git

    Install git commandline tool.

  • docker

    Install docker. The community edition (docker-ce) will work. In Linux make sure you grant permissions to the current user to use docker by adding current user to docker group, sudo usermod -aG docker $USER. Once you update the users group, exit from the current terminal and open a new one to make effect.

  • docker-compose

    Install docker-compose

Note: Make sure you can run git, docker ps, docker-compose without any issue and without sudo command.

Buidling

docker-compose build

Running

Start

docker-compose up -d

View logs

docker-compose logs -f

Stop

docker-compose down

Extra options

You can write extra options on the adminui or edit the docker-compose.yml and add extra options, such as:

 - EXTRA_OPTS=--syncmode full --gcmode archive --wsapi "db,eth,net,ssh,miner,web3,personal,admin"

Connect using web3js

If the package is running and you're connected to your dappnode you can use:

var Web3 = require('web3');
var web3 = new Web3('ws://my.ropsten.dnp.dappnode.eth:8546')
web3.eth.getBlockNumber().then(console.log)

In case you are running it locally:

var Web3 = require('web3');
var web3 = new Web3('ws://127.0.0.1:8546')
web3.eth.getBlockNumber().then(console.log)

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

About

DAppNode Package - Ropsten chain for DAppNode

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%