ethereum/meteor-ethereum-networkinfo

Name: meteor-ethereum-networkinfo

Owner: ethereum

Description: Meteor package to extract and expose Ethereum network information

Created: 2016-08-09 03:55:08.0

Updated: 2018-02-07 01:55:31.0

Pushed: 2016-09-09 10:40:04.0

Homepage: null

Size: 8

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Meteor package - Ethereum network info

Waits for a web3 connection and then extracts network info.

It fetches the Genesis block information and places it into a Promise - NetworkInfoPromise - for use throughout your application.

It also provides a proxy wrapper class for Mongo collections which ensures that network id is stored for each document in the collection, allowing you store data by network.

Installation
$ meteor add hiddentao:ethereum-networkinfo
Usage

Use the extracted network information via the Promise:

orkInfo.promise.then(function(networkInfo) {
nsole.log(info);


pe: 'main',
iqueId: 'fb25ce3f...',
nesis: {...},
/

To network-ify a collection do:

llection = new NetworkInfo.ProxyCollection(
w Mongo.Collection('mydata')

You can then use all the normal Meteor collection methods on the returned object.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.