Use a hardware wallet#

Trezor#

You will need the ape-trezor plugin. Install it with the following command:

ape plugins install trezor

Then, add the Trezor account to ape:

ape trezor add --hd-path "m/44'/1'/0'/0" trezor

# you will be prompted to unlock your Trezor, and to select which account you want to
# import

--hd-path "m/44'/1'/0'/0" indicates Trezor’s default derivation path. You will not be able to sign transactions using a different derivation path by default (learn more).

Your Trezor account is now ready, you can now interact with the contract as you normally would.

Ledger#

You will need the ape-ledger plugin. Install it with the following command:

ape plugins install ledger

You must:

  • have the Ledger USB device connected

  • have the Ledger USB device unlocked (by entering the passcode)

  • and have the Ethereum app open, then run:

ape ledger add ledger

⚠️ You need to enable blind signing to interact with the contract:

⚠️ Currently, the ape-ledger plugin only supports Ethereum. See related issue.

Your Ledger account is now ready, you can now interact with the contract as you normally would.