Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Latest commit

 

History

History
33 lines (25 loc) · 1.26 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.26 KB

geth-connector

Build Status Coverage Status npm Known Vulnerabilities

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