Skip to main content

Role Topology

Fetches the full role topology for a smart contract — the hierarchy of roles, their holders, and relationships. Always fetches fresh on-chain data.

Returns

  • Roots — Top-level roles (e.g., DEFAULT_ADMIN_ROLE)
  • Nodes — All role nodes with holder edges embedded
  • Resolved At — Block number at which roles were resolved

Example Queries

What roles exist on this contract and who holds them?
Show me the admin structure for 0x...
Who has the MINTER_ROLE on this contract?

Parameters

ParameterRequiredDescription
contractAddressYesThe contract address (0x…)
blockchainNoethereum (default) or base

Use Cases

Check who holds privileged roles like owner, admin, pauser, or upgrader before interacting with a protocol.
Map out the permission structure of a DAO or multisig-controlled protocol.
Before integrating with a contract, verify that the role hierarchy matches what the protocol claims.

Next Steps

Contract Metadata

Fetch contract details

Diff Versions

Compare contract versions