Hardhat plugin for integration with a Trezor hardware wallet
Caution
This package comes with no warranty, use at your own risk
- A Trezor hardware wallet
- Trezor Bridge installed and running
- install the plugin
npm install --save @yankeguo/hardhat-trezor
- import the plugin in your
hardhat.config.js
import "@yankeguo/hardhat-trezor";
- add the plugin configuration in your
hardhat.config.js
module.exports = {
solidity: "0.8.24",
networks: {
sepolia: {
url: "https://sepolia.base.org",
// standard ethereum derivation paths
trezorDerivationPaths: [
[44, 60, 0, 0, 0],
[44, 60, 0, 0, 1],
],
// this will bypass trezor derivation path validation, makes mainnet addresses usable on testnet
// see https://github.com/trezor/trezor-firmware/blob/main/docs/common/ethereum-definitions.md
trezorInsecureDerivation: true,
},
},
};
See demo/hardhat.config.ts for a complete example.
Send me some ETH or tokens to yankeguo.eth
.
GUO YANKE, MIT License