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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
$ meteor add hiddentao:ethereum-networkinfo
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.