Sub topic 9
Checking a token on a block explorer
A block explorer such as Etherscan or BscScan is a public website that shows what is recorded on a blockchain. It can't tell you whether a token is safe. It can show whether the people behind a token are able to take your money, and that is the question that matters before you buy.
This chapter assumes you know what a token contract, a liquidity pool and an LP token are, and how a rug pull differs from a pump-and-dump. It uses Ethereum-style explorers. Other chains have equivalents with different layouts. The same checks apply.
What the explorer can and cannot tell you
An explorer shows contract code, balances, transfers and the history of any address. It doesn't judge intent. A clean-looking token can still be a scam. An odd-looking one can be harmless. Treat each check as evidence, and treat a failed check as a reason to walk away.
The checks below go in a fixed order, because each one answers a different exit question. Can the contract stop you from selling? Can the creator mint more tokens? Can the creator remove the liquidity? Who is the creator?
Step 1: Confirm you have the right contract
Scam tokens copy the names and logos of real ones. A token called "USDC" can have any contract address. Take the address from the project's official site or from a trusted listing, then paste it into the explorer's search box. Don't search by name.
On the token page, note the contract address, total supply, number of holders and creation date. A token that claims years of history but was created two days ago is a copy.
Step 2: Check that the source code is verified
On the contract page, open the Contract tab. A green check means the creator published source code and the explorer compiled it and matched it to the deployed bytecode. Without verification you can't read what the contract does, and that alone is a reason to skip it.
Verification shows the code is readable. It doesn't show the code is fair. Scam contracts are routinely verified, so this is a minimum.
Step 3: Read the ownership and privileged functions
Open Read Contract and call owner(). Then open Write Contract and list the functions only an owner can call. Names that deserve a closer look:
| Function name pattern | What it may allow |
|---|---|
| `mint`, `_mint` exposed to the owner | Creating new tokens and diluting holders |
| `setBlocked`, `blacklist`, `setBot` | Stopping chosen wallets from transferring |
| `pause`, `setTradingEnabled` | Freezing all transfers |
| `setFee`, `setTax`, `setMaxTx` | Changing buy or sell costs after you buy |
| `upgradeTo`, `setImplementation` | Replacing the contract logic entirely |
If owner() returns 0x0000...0000 or 0x...dEaD, ownership is renounced, meaning no one can call owner-only functions. That removes one class of risk. Several things can still go wrong:
- The contract may use other roles, such as a separate
adminoroperator, that aren't tied toowner(). - The contract may be a proxy, which forwards calls to an implementation contract the admin can swap. The explorer shows "Read as Proxy" and "Write as Proxy" tabs when it detects one. A renounced proxy is not fixed code.
- Renouncing ownership does nothing about liquidity, which is controlled by whoever holds the LP tokens.
Step 4: Find out who holds the liquidity
This is the most important check for a rug pull by liquidity removal. In a Uniswap v2-style pool, the liquidity provider receives LP tokens, and burning LP tokens is what withdraws the pooled funds. Whoever holds the LP tokens can remove the liquidity.
- On the token page, open Holders or Token Transfers and find the largest holder that is a contract. This is usually the pair contract, labeled something like "Uniswap V2: TOKEN 2".
- Open that pair contract's address. It is itself an ERC-20 token. Its Holders tab lists who owns the LP tokens.
- Classify each large LP holder:
- Burned: held by
0x000...000or0x...dEaD. The liquidity is permanently stuck in the pool. - Locked: held by a locker contract such as Unicrypt or Team Finance. Open the lock details and check the unlock date. A lock that expires next week offers little protection.
- Unlocked: held by the deployer or another ordinary wallet. That wallet can remove the pool at any time.
One detail trips people up. Uniswap v2 permanently sends a tiny first amount of LP tokens (1000 base units) to the zero address on pool creation. A zero-address balance that is a tiny share of the total is this built-in minimum and isn't a burn. Look at the percentage, not just the presence of the address.
Uniswap v3 and similar pools don't use fungible LP tokens. Each position is an NFT, so you check who owns the position NFT and whether it sits in a locker contract.
The function below applies the same classification to a list of LP holders you copied from the explorer. The addresses are placeholders.
BURN_ADDRESSES = {
"0x0000000000000000000000000000000000000000",
"0x000000000000000000000000000000000000dead",
}
def classify_lp_holders(lp_balances, deployer, lockers):
"""Share of LP tokens that are burned, locked, deployer-held, or other.
lp_balances: dict mapping address -> LP token balance.
deployer: the token creator's address.
lockers: dict mapping locker contract address -> locker name.
"""
total = sum(lp_balances.values())
shares = {"burned": 0.0, "locked": 0.0, "deployer": 0.0, "other": 0.0}
if total == 0:
return shares
for address, balance in lp_balances.items():
key = address.lower()
if key in BURN_ADDRESSES:
shares["burned"] += balance / total
elif key in {a.lower() for a in lockers}:
shares["locked"] += balance / total
elif key == deployer.lower():
shares["deployer"] += balance / total
else:
shares["other"] += balance / total
return shares
holders = {
"0xDeployer": 800,
"0xLockerContract": 150,
"0x000000000000000000000000000000000000dEaD": 40,
"0x0000000000000000000000000000000000000000": 10,
}
result = classify_lp_holders(
holders, "0xDeployer", {"0xLockerContract": "ExampleLocker"}
)
print({k: round(v, 2) for k, v in result.items()})This prints {'burned': 0.05, 'locked': 0.15, 'deployer': 0.8, 'other': 0.0}. With 80% of the LP tokens in the deployer's hands, the deployer can empty most of the pool in one transaction.
Step 5: Examine the deployer wallet
On the contract page, the Contract Creator field links to the deployer address. Open it and look at three things:
- Funding source. Check the first incoming transaction. Funds from a privacy mixer or from a wallet that has funded many fresh wallets suggest an operator hiding links. Funds from a labeled exchange are less informative.
- Other contracts created. Many token contracts in a short time, especially ones whose liquidity has since gone to zero, indicate a serial launcher.
- Recent outgoing activity. Large sales of the token or transfers to exchange deposit addresses shortly after launch are a warning.
Look at the Holders tab as well. Compare the top holders to the deployer. If several top wallets were funded by the same source or received tokens directly from the deployer, they may be one party in disguise. The concentration measures from the earlier chapter apply here: leave out the pair and burn addresses before you judge the percentages.
Step 6: Read the pair's trade history for honeypot signs
A honeypot lets you buy but not sell. The explorer has no simulator, but the pair's transaction list shows the pattern. Open the Token Transfers or Transactions list for the pair and look for:
- Many buyers and almost no sells.
- Sell attempts with the status Fail, which means the contract reverted them.
- Sells only from the deployer or a few whitelisted addresses.
A flood of failed sells together with an owner-controlled blacklist is strong evidence. Third-party honeypot checkers can simulate a sale. Treat their results as one more input, not as a certificate.
Common mistakes
- Trusting the "renounced" label. Verify it by calling
owner()yourself and check for proxies and other roles. - Reading the holder percentage without excluding the pool. The pair often holds the largest share of a token, and that share is not an insider holding.
- Checking once. Ownership, taxes and locks can change. Recheck right before buying.
- Ignoring approvals. Fake sites ask you to sign approvals that let a contract spend your tokens. Review and revoke old approvals with the explorer's token approval checker.
Exercise
A token's contract is verified, owner() returns the dEaD address, but the pair contract's LP Holders tab shows one ordinary wallet, the deployer, holding 95% of the LP tokens with no lock. Is the token safe from a rug pull? Why or why not?
Show answer
No. Verification and renounced ownership remove the risk of owner-only functions such as minting or blacklisting. The deployer still holds the LP tokens and can burn them at any time to withdraw nearly all of the pool's ETH, which is a liquidity-removal rug pull. The liquidity would only be safe if the LP tokens were burned or locked for a meaningful time.
Exercise
You find 0.0000000000000001% of a pool's LP tokens at the zero address, and the rest sit in the deployer's wallet. Did the creator burn the liquidity?
Show answer
No. A tiny balance at the zero address is the minimum liquidity that a Uniswap v2-style pool locks automatically at creation. The creator's wallet holds almost all of the LP tokens, so the creator can still remove the liquidity.