UNPKG

stampit-cli

Version:

Helper command line utility to publish and check data through the Ethereum stampit contract. Install with +npm install -g stampit-cli+ then run +stampit help+ and +stampit info+

16 lines (13 loc) 308 B
var Web3 = require('web3'); var web3 = new Web3(); var config = require('../config.json'); web3.setProvider(new web3.providers.HttpProvider(config.web3provider)); function lib() { return { getNetworkId: function(){ return web3.version.network; }, lib: lib }; } module.exports = lib;