Alert on LayerZero setting changes for your OApp
The peer decides which contract on another network your OApp accepts messages from. The delegate can change libraries, DVNs and the peer. DVNs and the confirmation count decide which message counts as real. Delegate and config changes are emitted by the LayerZero endpoint, not your contract, so contract event monitoring misses them. SmartAlert reads the LayerZero endpoint and library events for your OApp's address.
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- Watches
- Your LayerZero v2 OApp and the LayerZero endpoint events about it
- Fires
- Peer changed; delegate changed; library, DVN, confirmation count or executor changed. Each rule is enabled separately
- Severity
- Warning
- Speed
- After the network confirms the block, checked every 5 minutes
- Networks
- Ethereum, BNB Chain, Base, Arbitrum
- Plan
- Pro and above
TemplateOffered automatically if the contract ABI has PeerSet and an endpoint() function
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.
How to enable
- 1
Add your OApp address.
- 2
Tick the rules you need: "LayerZero: peer changed", "LayerZero: delegate changed", "LayerZero: config changed".
- 3
Pick a channel.
Why it matters
If someone other than your key changed the peer or DVN, the OApp starts accepting forged messages as real, for example a transfer from another network. An alert on the change gives you time to check who made it before the first such message.
Related recipes
Alert on bridge signer changes
Get notified when your bridge's guardians, validators or signers change: Wormhole, Axelar, Hyperlane, Celer, or an event with a matching name.
Alert on oracle signer or price source changes
Get notified when a Chainlink or Pyth oracle's signers change or a lending protocol switches its price source. They decide how the protocol values collateral.
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.
Try it on your own contract
Paste a contract address, pick the recipe, choose where alerts go. The first 14 days have Pro limits.