Skip to content

enAPI nodeJS json-rpc 2.0 API and tools to easily spin up blockchain nodes and build dapps.

License

Notifications You must be signed in to change notification settings

lowskidev/enapi

Repository files navigation

enAPI nodeJS json-rpc 2.0 API and tools to easily spin up blockchain nodes and build dapps.

Please check out the enApi docs in the OpenRPC playground: DOCS

How to install enApi on Ubuntu 18.04 LTS https://www.youtube.com/watch?v=Vfd4PstITT8

Check out our enAPI video on youtube for further isntructions and enApi walkthrough: https://www.youtube.com/watch?v=pPru-z2o8es

To start using enAPI today, you will need a linux distribution, like Ubuntu.

Afterwards make sure you have at least git installed and clone this repo.

Once you have the enApi repo clone there is two sh files included in the setup directory. in the setup dir you will find another file called setup.sh running it will setup the host machine for enAPI and install all dependencies.

If you are working with another distro, all you will need to have pre installed is: Docker, nodeJS, NPM, and mongoDB.

Once you have docker installed you will need to pull our docker container for multi-geth, depending on your CPU architecture.

Again your options are ARMhf, ARM64 and x86.

For x86 devices run sudo docker pull bakon3/multigethx86 And for ARM based devices run sudo docker pull bakon3/multigetharm

After you have the docker images available, go ahead and CD into you the enApi directory and run: npm install

This will install all dependencies for enApi to run, once all dependencies are finished running, one last step is to run: npm run typings to make sure all type of are decalred.

Last step before starting up enApi, is to create the persistant storage directory, currently it's set for /media/ssd/.multigeth/ In this directory the node software will store it's chain data and IPC files. This also allows for easy node client updates without losing the chaindata after every upgrade and restart.

So go ahead and create it, sudo mkdir -p /media/ssd/.multigeth/

And you should be able to run enApi with: sudo npm start

Contributing

How to contribute, build and release are outlined in CONTRIBUTING.md, BUILDING.md and RELEASING.md respectively. Commits in this repository follow the CONVENTIONAL_COMMITS.md specification.

About

enAPI nodeJS json-rpc 2.0 API and tools to easily spin up blockchain nodes and build dapps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published