Sub topic 1
What a wallet address really is
Prerequisites
This chapter assumes you can send crypto from a wallet app or exchange, read hexadecimal strings, and know that a blockchain is a shared ledger of transactions.
Keys and addresses
A wallet holds a private key, a secret number. The wallet derives a public key from it, then derives an address from the public key. The address is a shortened, checksummed form that you can share publicly. Anyone can send funds to an address, but only the holder of the private key can spend them.
An address does not name its network. The same string can be valid on several networks, which is why the network matters as much as the address.
Reading address formats
Formats give clues, not proof:
- Bitcoin: starts with
bc1(bech32) or with1or3(legacy and P2SH). - Ethereum and other EVM chains:
0xfollowed by 40 hexadecimal characters. - Solana: a base58 string of 32 to 44 characters, with no
0,O,Iorl.
This script lists the networks an address could belong to, judged only by its format:
import re
def classify(address: str) -> list[str]:
candidates = []
if re.fullmatch(r"0x[0-9a-fA-F]{40}", address):
candidates.append("EVM-compatible (Ethereum, Polygon, Base, ...)")
if address.startswith("bc1"):
candidates.append("Bitcoin mainnet (bech32)")
if re.fullmatch(r"[13][1-9A-HJ-NP-Za-km-z]{25,34}", address):
candidates.append("Bitcoin mainnet (legacy or P2SH)")
if re.fullmatch(r"[1-9A-HJ-NP-Za-km-z]{32,44}", address):
candidates.append("Solana (base58 public key)")
return candidates
print(classify("0x52908400098527886E0F7030069857D2E4169EE7"))The 0x address returns several candidates, so the format alone does not identify the network.
Networks are separate ledgers
Each network keeps its own record of who owns what. A transfer on Polygon does not change the Ethereum ledger.
One address, many EVM networks
EVM (Ethereum Virtual Machine) networks share one address format, so a single address works on all of them. The funds stay on the network that received them. Sending ETH to an address on Polygon, when the wallet is set to Ethereum, can leave the funds unreachable unless the recipient controls that exact network.
> Tip: Check the network name and chain ID in your wallet before every send.
Exercise
An address starts with 0x and has 40 hexadecimal characters. Can you tell which network it belongs to?
Show answer
No. Many EVM networks share this format, so you must confirm the network separately.