Alert when a role is granted or revoked
On AccessControl contracts, roles like MINTER_ROLE or DEFAULT_ADMIN_ROLE decide who can mint, pause or upgrade. SmartAlert alerts on every RoleGranted and RoleRevoked, with the role and account in the message.
The rule
This is how the rule looks in the new-alert form. You enter the contract address when you create it.
Rule
from contract events- Watch
- Events
RoleGranted,RoleRevoked - Fire when
- Any event
- Severity
- Warning
TemplateOffered automatically when the ABI has both events
Where it would have fired
Every rule can be checked on history before you turn it on: you see where it would have fired over the last days.
Where the alert goes
Telegram on every plan; Slack, Discord and webhook on paid plans. A new project gets Pro limits for 14 days, no card needed.
- TelegramFree
- SlackPro
- DiscordPro
- WebhookPro
Works on: Ethereum, BNB Chain, Base, Arbitrum. · Free plan: up to 3 rules.
Turn it on
- 1
Add your contract address.
- 2
Keep "Role granted or revoked" checked.
- 3
Choose a channel.
Why it matters
A new minter or admin is a new way to drain or inflate. Most teams change roles a few times a year, so each alert is worth reading.
Related recipes
Alert when contract ownership is transferred
Get a Telegram, Slack or Discord alert the moment OwnershipTransferred fires on your Ethereum, BNB Chain, Base or Arbitrum contract.
Alert when Safe owners or threshold change
Watch AddedOwner, RemovedOwner and ChangedThreshold on your Safe and get an alert at once, as critical.
Try it on your own contract
Paste a contract address, pick the recipe, choose where alerts go. The first 14 days have Pro limits.