- 01
Pull the bytecode
The code that is really deployed, from any public node.
- 02
List the functions
Every entry point is a 4-byte selector in the code.
- 03
Find the owner powers
Name the selectors, then read who may call each one.
Ask your agent
›Use REP on this token contract's bytecode. List every function it exposes, mark the ones only the owner can call, and tell me what each of those lets the owner do to holders.
REP reads EVM bytecode directly: the function table, the selectors and their argument types, without needing the source. Your agent names them and, when the source is published, checks each one against it.
A real example: the largest stablecoin on Ethereum
We read the deployed code of USDT (Tether) at 0xdAC17F958D2ee523a2206206994597C13D831ec7 from a public Ethereum node at block 26,542,153: 11,075 bytes. Its function table holds 35 selectors, and all 35 match a known signature. Ten of them are marked onlyOwner in the contract's verified source:
| Selector | Function | Who can call it |
|---|---|---|
| 0x0ecb93c0 | addBlackList(address) | owner only |
| 0xe4997dc5 | removeBlackList(address) | owner only |
| 0xf3bdc228 | destroyBlackFunds(address) | owner only |
| 0xcc872b66 | issue(uint256) | owner only |
| 0xdb006a75 | redeem(uint256) | owner only |
| 0x0753c30c | deprecate(address) | owner only |
| 0xc0324c77 | setParams(uint256,uint256) | owner only |
| 0x8456cb59 | pause() | owner only |
| 0x3f4ba83a | unpause() | owner only |
| 0xf2fde38b | transferOwnership(address) | owner only |
| 0xa9059cbb | transfer(address,uint256) | anyone / read |
| 0x23b872dd | transferFrom(address,address,uint256) | anyone / read |
| 0x095ea7b3 | approve(address,uint256) | anyone / read |
| 0x70a08231 | balanceOf(address) | anyone / read |
| 0x18160ddd | totalSupply() | anyone / read |
| 0xdd62ed3e | allowance(address,address) | anyone / read |
| 0x06fdde03 | name() | anyone / read |
| 0x95d89b41 | symbol() | anyone / read |
| 0x313ce567 | decimals() | anyone / read |
| 0x8da5cb5b | owner() | anyone / read |
| 0x893d20e8 | getOwner() | anyone / read |
| 0x5c975abb | paused() | anyone / read |
| 0xe47d6060 | isBlackListed(address) | anyone / read |
| 0x59bf1abe | getBlackListStatus(address) | anyone / read |
| 0x26976e3f | upgradedAddress() | anyone / read |
| 0x0e136b19 | deprecated() | anyone / read |
| 0xdd644f72 | basisPointsRate() | anyone / read |
| 0x35390714 | maximumFee() | anyone / read |
| 0x3eaaf86b | _totalSupply() | anyone / read |
| 0x27e235e3 | balances(address) | anyone / read |
| 0xe5b5019a | MAX_UINT() | anyone / read |
| 0x5c658165 | allowed(address,address) | anyone / read |
| 0x6e18980a | transferByLegacy(address,address,uint256) | anyone / read |
| 0x8b477adb | transferFromByLegacy(address,address,address,uint256) | anyone / read |
| 0xaee92d33 | approveByLegacy(address,address,uint256) | anyone / read |
What those powers mean for a holder
- addBlackList + destroyBlackFunds: the owner can put an address on a list, then set that address's balance to zero and reduce the total supply by the same amount.
- issue / redeem: the owner can create new tokens in its own balance, or remove them.
- pause: the owner can stop every transfer.
- deprecate: the owner can point the contract at a new one, which then handles every call.
- setParams: the owner can switch on a transfer fee, but the code caps it:
require(newBasisPoints < 20)andrequire(newMaxFee < 50).
None of this is hidden for this token: its issuer documents it. The point is the method. The same read on a new token with no website copy tells you at once whether there is a mint, a blacklist, a pause, a fee switch or a swap-to-new-contract door, and the code tells you who holds the key.
function destroyBlackFunds (address _blackListedUser) public onlyOwner {
require(isBlackListed[_blackListedUser]);
uint dirtyFunds = balanceOf(_blackListedUser);
balances[_blackListedUser] = 0;
_totalSupply -= dirtyFunds;
DestroyedBlackFunds(_blackListedUser, dirtyFunds);
}Read your own contract
Runs in your browser. A selector only proves a function exists; who may call it is in the function's own code, which is where your agent reads next.