@digix/truffle-lightwallet-provider
v0.1.7
Published
RPC Provider using Eth-Lightwallet & Web3-Provider-Engine.
Downloads
52
Keywords
Readme
Truffle Lightwallet Provider
RPC Provider using Eth-Lightwallet & Web3-Provider-Engine.
Inspired by https://github.com/trufflesuite/truffle-hdwallet-provider.
Usage
// truffle.js
const LightWalletProvider = require('@digix/truffle-lightwallet-provider');
module.exports = {
networks: {
ropsten: {
provider: new LightWalletProvider({
keystore: '/path/to/my/serialized-eth-lightwallet.json',
password: 'mySecretDecryptionKey',
rpcUrl: 'http://ropsten.infura.io/',
debug: true, // optional, show JSON-RPC logs
prefund: 1e18, // optional, fund all lightwallet addresses (via coinbase) with this of wei
pollingInterval: 4000 // optional, polling interval for the provider (reduce for faster deploy with testRPC or kovan)
}),
network_id: '3',
},
},
};
Sigmate
Check out https://github.com/DigixGlobal/sigmate for a simple eth-lightwallet keystore manager.