@daonomic/trezor-web3-provider
v0.0.6
Published
Trezor-enabled provider for Provider Engine
Downloads
3
Readme
trezor-web3-provider
Trezor-enabled Web3 provider for Truffle. Use it to sign transactions using trezor hardware wallet
Install
$ npm install trezor-web3-provider
General Usage
You can use this web3 provider to sign transaction using trezor hardware wallet
var engine = new ProviderEngine();
engine.addProvider(new TrezorProvider("m/44'/1'/0'/0/0"));
engine.addProvider(new FiltersSubprovider());
engine.addProvider(new Web3Subprovider(new Web3.providers.HttpProvider("http://ropsten.infura.com/{key}")));
engine.start();
TrezorProvider will expose one address for specified path
Parameters:
path
:string
. derivation path for address
Truffle Usage
You can easily use this within a Truffle configuration