Build a Fresh DeFi Wallet with Minimal Blast Radius
A separate wallet gives me a clear limit on an experiment: if I fund it with $200, that is the balance I can lose. It also makes the activity easier to review without mixing test approvals with savings.
The separation only works if I keep track of the keys and permissions. Here is the setup checklist, plus a disposable Python example for checking address derivation.
Designing a minimal blast radius setup
- Wallet type: Start with a hardware wallet for signing and a separate hot wallet only for dApp approvals; keep balances on the hardware-controlled address. This keeps drained hot-wallet scenarios capped to hundreds of dollars instead of the full stack.
- Seed hygiene: For a hardware wallet, generate the seed on the device and keep the backup offline. BIP-39 mnemonics are deterministic, so a single compromise leaks every child key derived from the seed. BIP-39 spec
- Derivation path discipline: Stick to
m/44'/60'/0'/0/0unless you intentionally separate accounts; it’s the default Ethereum path defined by BIP-44. BIP-44 - Browser hygiene: Use a dedicated browser profile with only the wallet extension installed, disable auto-approve popups, and clear caches after any signing session.
- Network layout: Keep the funding source on a different wallet; bridge or transfer only what you intend to risk (e.g., $200 for early testing) and leave the rest cold.
Check derivation with a disposable wallet
This example creates a software wallet and checks that its mnemonic derives the same first address. Use it to understand the path, with no funds attached. For a funded hardware wallet, generate and retain the seed on the device rather than importing it into Python.
# pip install eth-account==0.11.3
from eth_account import Account
from pathlib import Path
Account.enable_unaudited_hdwallet_features()
account, mnemonic = Account.create_with_mnemonic(num_words=12)
child = Account.from_mnemonic(mnemonic, account_path="m/44'/60'/0'/0/0")
assert child.address == account.address
# Only public information goes in the file. This is a disposable example.
output = Path("fresh-wallet-public.txt")
output.write_text(f"address: {child.address}\n")
print(f"First address: {child.address}")
The mnemonic and private key remain in process memory even though the script does not print them. That is one reason this is a derivation exercise, rather than my recommended custody setup. eth-account API reference
Where fresh wallets still fail
- Supply-chain risk: A tampered hardware wallet or USB image leaks the mnemonic during setup. Buy direct from vendors and verify firmware hashes when provided.
- Clipboard and screen leaks: Keyboard loggers and screenshot tools on the host OS can capture seed words; use an offline machine with no persistence to avoid latent malware.
- Extension sprawl: Installing unrelated extensions reintroduces injection risk. Keep the DeFi profile limited to the extensions you need and revoke permissions regularly.
- QR and NFC transfers: Copying mnemonics via QR or NFC makes them scannable by cameras. Stick to pen-and-paper and never photograph the words.
Before the first funded transaction
- Keep the working balance small (a few hundred dollars) until you’ve run an approval-revoke cycle and a test swap on an L2.
- Store the mnemonic physically, use a passphrase only if you can back it up and recover it reliably, and record the derivation path alongside it.
- Maintain a separate “cash-out” address that never touches dApps; route profits there after each batch of tests.
- Tag every transaction in a block explorer so you can audit which wallet did what without cross-contaminating keys.