Sub topic 5
Coins, tokens and the same token on different networks
This chapter assumes you know what a blockchain is, have sent crypto from a wallet or exchange, and can read hexadecimal strings. It builds on the idea that each network is a separate ledger. Here you will see what is stored on that ledger when you "hold" a coin or a token, and why one token name can refer to several unrelated assets.
Native coins: the network's own unit
A native coin is the unit the network's protocol itself tracks. Every account on the ledger has a balance field in the base state, and the protocol changes that field directly when a transfer happens. Examples:
- BTC on Bitcoin
- ETH on Ethereum
- SOL on Solana
- BNB on BNB Smart Chain
- POL on Polygon (the coin formerly called MATIC)
- TRX on Tron
The native coin also pays transaction fees. On EVM networks the fee is called gas, and it is always paid in that network's native coin. This is a practical rule: to send anything on a network, you need a little of its native coin.
Several networks use ETH as their native coin, including Ethereum, Optimism, Arbitrum One and Base. The ETH on each of them is a separate balance on a separate ledger. Shared ticker and shared address do not make those balances the same money.
Tokens: entries in a contract's books
A token is not part of the protocol. It is a record kept by a smart contract, which is a program deployed at an address on one network. The contract holds a table that maps holder addresses to amounts. When you "own 100 USDC", the USDC contract's table has an entry that says your address holds 100 units. Your wallet has no coin object inside it. The wallet only reads that table.
On EVM networks, most tokens follow the ERC-20 interface. This defines standard functions such as these:
balanceOf(address)returns how many units an address holds.transfer(to, amount)moves units from the caller to another address.decimals()says how many decimal places the integer amounts represent.
A token transfer is therefore a call to the contract, not a native transfer. The transaction goes to the token contract's address, the contract edits its table, and the sender pays gas in the native coin.
| Property | Native coin | Token |
|---|---|---|
| Where the balance lives | In the network's base account state | In a smart contract's storage |
| Who defines the rules | The protocol | The contract's code and its deployer |
| Used to pay fees | Yes | No |
| Exists on which networks | One network | Only where its contract is deployed |
| Transfer type | Plain value transfer | Contract call |
Token standards name an interface, not a place
Names such as ERC-20, BEP-20, TRC-20 and SPL describe a token interface. They also hint at a network family, but they do not always identify one network.
- ERC-20 is the Ethereum standard, and the same interface is used on every EVM network. A token on Polygon or Arbitrum is also ERC-20 in form.
- BEP-20 is the name used on BNB Smart Chain. It follows the ERC-20 interface.
- TRC-20 is the Tron equivalent. Tron addresses and virtual machine differ from Ethereum's.
- SPL is the Solana token program. It works differently from ERC-20 because Solana keeps each holder's balance in a separate token account.
Exchanges often label the Ethereum option as "ERC-20". That label is a network choice in the deposit form. It is not a guarantee that other networks cannot also run ERC-20 tokens.
The same token on different networks
A popular token such as USDT or USDC is usually issued on many networks. Each issuance is a separate contract with its own ledger of balances.
- USDT on Ethereum is one contract, USDT on Tron is another, and USDT on Solana is a third.
- The Ethereum USDT contract is at
0xdAC17F958D2ee523a2206206994597C13D831ec7. - The Ethereum USDC contract is at
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48. - The contract address for the same token on another EVM network is generally different. Do not assume it matches.
- Details can differ too. USDT and USDC on Ethereum use 6 decimals, while the Binance-pegged versions on BNB Smart Chain use 18.
The diagram has no link between the two ledgers. A transfer on one network never changes a balance on the other. Moving value across them takes a deliberate extra step, such as a bridge, which a later chapter covers.
Why a ticker is not an identity
A symbol like "USDT" is just text chosen by the contract's deployer. Nothing in the system keeps symbols unique. This leads to several traps.
- Native versus bridged versions. Some networks hold more than one version of a stablecoin. One is issued directly by the company, and another is a bridged copy that stands for tokens locked elsewhere. Wallets may show both as similar names, such as USDC and USDC.e. They are different contracts. An exchange may support only one of them.
- Wrapped assets. WETH is an ERC-20 token that represents ETH. It is not native ETH. It sits in a contract table, not in the base account balance.
- Counterfeit tokens. Anyone can deploy a contract that calls itself "USDT". Scam tokens use this and appear in your wallet as unsolicited transfers. Check the contract address, not the symbol.
- Same name, different network. "USDT" in an exchange's withdrawal dialog is only half an instruction. The other half is the network.
Fees need the native coin
A token balance does not pay for its own transfers. If an address holds USDT on Tron but no TRX, the owner has a fee problem as well as a network question. The same is true on every other network:
- Tokens on Ethereum need ETH for gas.
- Tokens on BNB Smart Chain need BNB.
- Tokens on Polygon need POL.
- Tokens on Solana need a small amount of SOL.
Always keep a small native balance on each network where you hold tokens. Some wallets and services offer fee sponsorship or let you pay fees in a token, but do not rely on that unless you have tested it.
Reading a token balance directly
You can ask a node for a token balance without any wallet. The script below uses the raw JSON-RPC call eth_call to read balanceOf and decimals from a token contract. It raises a clear error if no contract exists at that address on the network you queried.
import json
import os
import urllib.request
RPC_URL = os.environ["RPC_URL"] # an RPC endpoint for ONE network
def eth_call(to: str, data: str) -> str:
payload = {
"jsonrpc": "2.0",
"method": "eth_call",
"params": [{"to": to, "data": data}, "latest"],
"id": 1,
}
req = urllib.request.Request(
RPC_URL,
data=json.dumps(payload).encode(),
headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(req) as resp:
body = json.load(resp)
if "error" in body:
raise RuntimeError(body["error"])
result = body["result"]
if result == "0x":
raise RuntimeError("No contract at this address on this network")
return result
def token_balance(token: str, holder: str) -> float:
# 0x70a08231 is the selector for balanceOf(address)
padded = holder.lower().removeprefix("0x").rjust(64, "0")
raw = int(eth_call(token, "0x70a08231" + padded), 16)
# 0x313ce567 is the selector for decimals()
places = int(eth_call(token, "0x313ce567"), 16)
return raw / 10**places
USDC_ETHEREUM = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
HOLDER = "0x52908400098527886E0F7030069857D2E4169EE7"
print(token_balance(USDC_ETHEREUM, HOLDER))Run it with RPC_URL pointed at an Ethereum endpoint and it reads the real USDC contract. Point it at another network with the same contract address and it will probably fail with "No contract". The address string is valid there, but nothing is deployed at it. In rare cases a different contract exists at that address, so the result can also be misleading. The contract belongs to a network, not just to an address.
What this means for sending
Three facts from this chapter carry into the later chapters on deposits and wrong-network transfers.
- A balance is always "amount of asset X on network Y". Dropping either part leaves the description incomplete.
- A recipient address can be perfectly valid on a network where the receiver has no way to see or spend the token, for example because the receiving service never monitors that contract.
- Getting a native coin or token to the right place needs the right network, the right contract and enough native coin for fees. A mistake in any one of the three can strand funds.
Exercise
An address holds 50 USDT on Tron and 0 TRX. A friend says, "Just send it to the same address on Ethereum, it's the same USDT." Give two reasons this does not work as described.
Show answer
First, USDT on Tron and USDT on Ethereum are separate contracts on separate ledgers, so a Tron balance cannot be spent or seen on Ethereum. Moving value between them needs a deliberate cross-network step such as a bridge or an exchange conversion. Second, even for a normal Tron transfer the address needs TRX to pay fees, and it has none. Tron addresses also use a different format from Ethereum's 0x addresses, so the idea of a "same address" does not hold.
Exercise
You run the balance script against a Polygon endpoint using the Ethereum USDC contract address. It raises "No contract at this address on this network". What does that tell you, and what should you check next?
Show answer
It tells you that no code is deployed at that address on Polygon, so the Ethereum token contract does not exist there. Check the token issuer's documentation for the correct USDC contract address on Polygon, and note whether it is the native version or a bridged one. Then rerun the script with that address.