node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

@akashaproject/geth-connector

geth-connector

Build Status Coverage Status npm

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))