Sub topic 14
Defensive Habits: Verification, Hardware Wallets, and Limited Approvals
This chapter assumes you understand wallets, public addresses, seed phrases, and basic crypto transfers. It also assumes you have used an exchange or wallet app to send and receive tokens.
Verify before you connect or send
Most defensive habits create a pause between a request and an irreversible action. Verify the request through a channel you already trust. Do not use a phone number, link, or account supplied by the suspicious message.
For a website, type the address yourself or use a saved bookmark. Check the full hostname. coinbase.com.login-verify.example is controlled by example, not Coinbase. Search results can also contain malicious advertisements, so an official-looking result is not proof of authenticity.
For a transfer, compare the complete recipient address. Do not rely only on the first and last few characters. Confirm all of these details:
| Detail | What to verify |
|---|---|
| Recipient | Full address from a trusted source |
| Network | Ethereum, Polygon, Solana, or the intended network |
| Asset | The correct token, not a lookalike token |
| Amount | Decimal places and fees |
| Destination | The intended wallet, exchange, or contract |
A small test transfer can reduce mistakes, but it does not make a malicious recipient safe. Confirm the recipient before sending the test.
from urllib.parse import urlparse
OFFICIAL_HOSTS = {"coinbase.com", "www.coinbase.com"}
def check_url(url: str) -> str:
host = (urlparse(url).hostname or "").lower()
if host in OFFICIAL_HOSTS:
return "official hostname"
if host.startswith("xn--") or ".xn--" in host:
return "possible punycode lookalike"
return "unknown hostname: do not sign in"
print(check_url("https://www.coinbase.com/"))
print(check_url("https://coinbase.com.login-verify.example/"))Use hardware wallets correctly
A hardware wallet keeps signing keys in a dedicated device instead of exposing them directly to a computer or phone. It can protect the key from some malware, but it cannot protect you from approving a harmful transaction.
Read the transaction details on the device screen, not only in the browser. Check the destination, amount, network, and contract action. A request to “verify your wallet” may actually ask you to transfer funds or grant token access.
Write the seed phrase on paper or another durable offline medium. Never enter it into a website, send it in a message, or store it in a screenshot or cloud document. Anyone who obtains it can usually control the wallet. A hardware wallet is not a backup for a secret that has already been exposed.
Limit token approvals
A token approval gives a smart contract permission to spend a token from your wallet. Some sites request an unlimited approval, which allows the contract to spend future deposits as well as the current amount.
Prefer an exact allowance for the amount you need. After using an unfamiliar application, review and revoke approvals through a reputable block explorer or wallet tool. Revoking an approval is itself an on-chain transaction and requires a network fee. Revoke the approval rather than transferring funds to an address suggested by an unknown “support” account.
Build a repeatable routine
Use separate wallets for different purposes when practical. Keep long-term holdings in a wallet that rarely connects to websites. Keep only the amount needed for regular activity in a spending wallet.
Before signing, ask:
- Did I start this action?
- Did I verify the site and contract independently?
- Is the requested approval limited?
- Does the hardware device show the expected details?
- Can I reject this without losing access or missing a real deadline?
Urgency is a reason to stop, not a reason to skip verification.
Exercise
A familiar website asks for an unlimited token approval before you can claim a reward. What should you do?
Show answer
Reject the request, verify the site and contract through an independent trusted source, and use an exact approval only if the reward is legitimate and necessary.