geth-connector
geth-connector copied to clipboard
This repository served as an experiment playground for the alpha version of AKASHA desktop application. Now it is considered deprecated and seen as a stepping stone in the R&D of the AKASHA world fram...
geth-connector
Description
This is a package created and used by AKASHA to manage geth/web3.js.
Docs
The API docs can be found here.
Installation
npm install @akashaproject/geth-connector --save
Usage
import {gethHelper, GethConnector} from '@akashaproject/geth-connector'
const instance = GethConnector.getInstance(); // get the Singleton Service
/**
* {status}
* [] => synced
* [x] => finding peers
* [x, y] => synchronizing
*/
gethHelper.inSync().then(status => console.log(status))