Giter Site home page Giter Site logo

dappnodepackage-geth's Introduction

Geth DAppNode package

DAppNodeStore Available

Geth github

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 edit the docker-compose.yml and add extra options, such as:

 - EXTRA_OPTS=--wsapi db,eth,net,ssh,miner,web3,personal,admin,txpool

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.geth.dappnode: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

dappnodepackage-geth's People

Contributors

eduadiez avatar dapplion avatar nanexcool avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.