Recipe · AccessControl · Ethereum, BNB Chain, Base and Arbitrum

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

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

Try it on your own contract

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.

Channels

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

Turn it on

  1. 1

    Add your contract address.

  2. 2

    Keep "Role granted or revoked" checked.

  3. 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.

Try it on your own contract

Paste a contract address, pick the recipe, choose where alerts go. The first 14 days have Pro limits.