github NomicFoundation/hardhat @nomicfoundation/hardhat-ledger@1.0.0
Introducing @nomicfoundation/hardhat-ledger

This is the first release of our new official plugin: hardhat-ledger! This plugin lets you send transactions and sign messages using your Ledger wallet.

To start using it, first you'll have to install it:

npm install --save-dev @nomicfoundation/hardhat-ledger

And add it to your Hardhat config:

require("@nomicfoundation/hardhat-ledger")

Then add a ledgerAccounts entry to the network where you want to use a Ledger account. This entry is an array of addresses:

module.exports = {
  networks: {
    sepolia: {
      url: "...",
      ledgerAccounts: ["0x123..."],
    },
  },
};

When a transaction is sent or a message is signed from one of those addresses, the execution will halt until you confirm the signing in your Ledger.

Check the plugin docs to learn more.

Feedback is welcome! Please open an issue if you find a problem or there's something you think could be improved.

Don't miss a new hardhat release

NewReleases is sending notifications on new releases.