Skip to main content
Crypto News Week

Crypto markets, protocols and policy

How to Check ERC-20 Owner Powers on Etherscan

How to check ERC-20 owner functions on Etherscan: trace gated functions, read current owners and roles, and see what a token scanner can miss for yourself.

The Crypto News Week Editors3 min read

How to Check ERC-20 Owner Powers on Etherscan

Etherscan’s verified source and Read Contract tab show which ERC-20 functions are gated and who can call them now; a scanner can flag common patterns, but it can miss custom code. You’ll finish with a list of privileged functions and the addresses or roles that currently control them.

How do you find every owner-gated function?

Start with the token’s Ethereum contract address on Etherscan, and confirm its source is verified. The Code, Read Contract and Write Contract tabs appear for contracts with verified source. ERC-20, the token standard defined by EIP-20, specifies token functions such as transfers and balances; it does not prescribe an owner or mint function. Privileged powers depend on the contract’s own code.

  1. In Code, search across the source for onlyOwner, onlyRole and custom modifiers. A modifier is a check that restricts who can run a function. Follow each modifier to see what condition it enforces, then list every function behind it: for instance, minting, changing fees, pausing transfers or managing a blacklist.

  2. In Read Contract, call owner() and record the returned address. Then identify each role used by a gated function. With OpenZeppelin AccessControl, DEFAULT_ADMIN_ROLE is the zero-valued role, 0x00, and can grant other roles by default. Call hasRole(role, account) for each privileged role against the deployer and any admin addresses you find in the code or project records. Record which checks return true.

  3. Read the public state tied to those functions, such as tax rates, maximum transaction amounts and blacklist mappings. These values show how the privileged powers are configured right now. A role check only tells you whether a particular address holds that role; if the contract does not expose a way to enumerate role members, test the relevant addresses you can identify.

GoPlus Security and TokenSniffer can flag familiar risk patterns quickly, while Etherscan lets you inspect the verified implementation and query its current values. A Solana rugcheck can be a useful contrast: its fixed mint and freeze fields make the check more standardized. For that same reason, a memecoin safety check is a concrete example of a rugcheck built around known fields; ERC-20 privileges require reading the contract’s code and state.

What does renounced ownership mean on a token?

With OpenZeppelin Ownable, renounceOwnership() sets owner() to address(0), disabling functions protected only by onlyOwner. It clears that owner field; it does not automatically clear AccessControl roles or other admin variables. So if the owner has renounced, still query hasRole for every privileged role against the deployer and identified admin addresses. Check other admin variables too: custom code may use them to gate powers outside Ownable.

Say the contract also has a separate fee-admin address. Renouncing ownership changes owner(), but the fee-admin check still applies if the code retains it. The same code-reading method holds: find the gate, identify its state variable or role, then query its current value.

Related

How do I confirm Etherscan’s verified source matches the deployed contract?

On Etherscan, inspect the verification status and match type in Code. The verified source is useful for this review when it matches the deployed bytecode; unverified bytecode does not provide the readable source needed to follow these gates.

What should confirm the review is complete?

Check that every gated function has a named modifier or condition, each condition has a current value or role check, and every relevant address has a recorded result. Your finished list should pair each callable power with its current holder or holders. That is the Etherscan result a scanner flag alone cannot provide.