Smart Contract Relationship Graph
Map a contract's proxy, implementation, admin, owner, deployer/factory and token links as a graph.
How it works
Draws the relationships around one address: proxy → implementation (and beacon), who can upgrade it (ProxyAdmin, Safe, timelock, EOA), owner() and admin(), who deployed it and whether that deployer is itself a contract (a factory), which token standards it implements (ERC-20 / ERC-721 / ERC-1155), plus any related addresses you add. Paste runtime bytecode and a relationship list for an offline graph.
- Proxy, implementation, beacon and upgrade controller come from the Smart Contract Upgrade Explorer tool (EIP-1967 / EIP-1822 / EIP-1167 / Safe / ZeppelinOS / EIP-7702 detection from storage slots and bytecode).
- owner() and admin() are read with eth_call (a revert means the function does not exist or is restricted).
- Deployer and creation transaction come from Sourcify (v2 API, fields=deployment) — only available for contracts verified on Sourcify. A deployer that has code is reported as a factory.
- Token standards: ERC-165 supportsInterface for ERC-721 (0x80ac58cd) and ERC-1155 (0xd9b67a26); ERC-20 when totalSupply() and decimals() answer; name/symbol/decimals/totalSupply are read on-chain.
- Offline: runtime bytecode is scanned for dispatcher selectors (PUSH4 … EQ) to infer ERC-20 / ERC-721 / ERC-1155 / Ownable / AccessControl, EIP-1167 clone targets and EIP-7702 delegation; your relationship lines are added verbatim.
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Chainscope Web3 investigation desk
Investigate transactions, bridges, contracts, DAOs and wallets in one case file.
-
ObscurIQ OSINT case desk
Organize public-source research: cases, a research log, pivots and indicators.
Related tools
- Smart Contract Upgrade Explorer – Is this smart contract upgradeable, who controls upgrades, and what changed?
- Wallet Permission Explorer – Who can move your tokens? Allowances, Permit2, NFT operators and EIP-7702 delegation, with risk.
- Transaction Decoder – See what an EVM transaction actually did: call, events, token transfers, fee, finality.
How to use the Smart Contract Relationship Graph
Map who controls a contract — proxy, implementation, upgrade admin, owner, deployer and token standards — in one graph.
What it is for
Before you approve a token, deposit into a vault or trust a protocol, it helps to know who stands behind the address. Is it a proxy whose logic can be swapped? Who can do the swap — a multisig, a timelock, or one person's wallet? Who owns it, who deployed it, and was it created by a factory? This tool draws those relationships as a graph around one address.
In live mode it reads storage slots and bytecode to detect proxies (EIP-1967, EIP-1822, minimal clones, Safe, EIP-7702 delegation), calls owner() and admin(), asks Sourcify for the deployer, and checks which token standards (ERC-20, ERC-721, ERC-1155) the contract implements. You can add your own related addresses, such as a treasury or a token it holds.
It is a map, not an audit. It doesn't read the source code for hidden powers like pausing or minting, and deployer information exists only for contracts verified on Sourcify.
Worked example
The first page example needs no live chain lookups: the 45-byte runtime code of an EIP-1167 minimal proxy plus four relationship lines:
this -> 0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed : owned by
0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359 -> this : deployed
this -> 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 : holds USDC
0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed -> Treasury Safe : member of
The tool returned "The contract is a proxy (eip1167-minimal-proxy) pointing to 0x0123456789abcDEF0123456789abCDef01234567. The graph has 6 nodes and 5 relationships."
The bytecode is the standard clone pattern, so the tool reads the clone target straight out of it and draws a "clones (EIP-1167)" edge to the implementation. A minimal proxy can't be upgraded, so Upgradeable says no. It has no function selectors of its own (0 found), so no token standard is detected. A warning explains that the token and owner functions live in the implementation. Your four lines were added as edges, marked "not checked offline". The graph has six nodes: the clone, its implementation, its owner, its deployer, USDC and the Treasury Safe.
The second example, "Ownable ERC-20 token bytecode", is the kind of code such an implementation holds. From 67 bytes the tool finds 8 function selectors: the ERC-20 set (transfer, transferFrom, approve, balanceOf, totalSupply, allowance) plus owner() and transferOwnership(address). It reports "The contract is not a proxy. It implements erc20, ownable."
The practical reading: the clone's logic is fixed, but whatever the owner functions in the implementation allow is controlled by 0x5aAe…eAed. By your own note, that address belongs to a treasury Safe.
How to read the result
- Proxy: type, implementation (and beacon) and the upgrade controller, with its kind: ProxyAdmin, Safe, timelock or plain wallet (EOA).
- Owner / admin: results of
owner()andadmin(). Empty means the call reverted or the function doesn't exist. - Deployment: deployer and creation transaction from Sourcify; "created by factory" when the deployer is itself a contract.
- Interfaces and token: detected standards plus name, symbol, decimals and supply.
- Bytecode: size, selector count, upgrade-related functions, delegatecall presence.
- Graph: everything above as nodes and labelled edges, also downloadable as JSON.
Tips and common mistakes
- An upgrade controller that is a plain wallet (EOA) is the biggest red flag: one key can replace all the logic.
- "Not a proxy" plus "ownable" still leaves owner powers; check what the owner functions can do on a verified-source explorer.
- A contract unverified on Sourcify shows no deployer. That's missing data, not a suspicious finding.
- Use "this" in relationship lines to refer to the analysed contract; names like "Treasury Safe" become named nodes.
- Selector detection in offline mode only sees functions dispatched in the bytecode; inherited logic behind a delegatecall is invisible.
FAQ
Can a contract that isn't a proxy still be changed?
Its code can't, but an owner can often change parameters, pause transfers or mint, depending on the functions it has. The graph tells you who holds those keys, not what they unlock.
Why is the owner empty in live mode?
Either the contract has no owner() function, or it uses role-based access control instead (shown as AccessControl).
What is EIP-7702 delegation doing here?
A normal wallet can delegate its code to a contract. The tool detects that marker so you can see that an "address" may run someone else's code.
Are my pasted relationships verified?
No. They are drawn exactly as written, so the graph is only as reliable as your notes.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://smartcontractrelationshipgraph.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://smartcontractrelationshipgraph.usefulweb.site/mcp· tool namesmart_contract_relationship_graph
Example request
curl -s -X POST https://smartcontractrelationshipgraph.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"mode":"bytecode","chain":"ethereum","bytecode":"0x363d3d373d3d3d363d730123456789abcdef0123456789abcdef012345675af43d82803e903d91602b57fd5bf3","relationships":"this -> 0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed : owned by\n0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359 -> this : deployed\nthis -> 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 : holds USDC\n0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed -> Treasury Safe : member of"}'