Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dappnode/dappnodepackage-ethereum-classic
https://github.com/dappnode/dappnodepackage-ethereum-classic
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dappnode/dappnodepackage-ethereum-classic
- Owner: dappnode
- License: gpl-3.0
- Created: 2020-01-13T20:28:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-04T18:54:16.000Z (about 2 years ago)
- Last Synced: 2023-03-10T04:11:33.986Z (almost 2 years ago)
- Language: Dockerfile
- Size: 45.9 KB
- Stars: 5
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Core-Geth DAppNode package for ETC
[![DAppNodeStore Available](https://img.shields.io/badge/DAppNodeStore-Available-brightgreen.svg)](http://my.dappnode/#/installer/ethereum-classic.dnp.dappnode.eth)
[![Core-Geth github](https://img.shields.io/badge/Core--Geth-Github-blue.svg)](https://github.com/etclabscore/core-geth)
You can use this package without installing it in your DAppNode following these instructions:
## Prerequisites
- git
Install [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) commandline tool.
- docker
Install [docker](https://docs.docker.com/engine/installation). 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](https://docs.docker.com/compose/install)
**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=--ws.api 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://ethereum-classic.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](LICENSE) file for details