State Change

Introduction

Triggers whenever a state variable in one of your contracts changes.

Example

Letโ€™s get notified when MultiSigWallet number of required confirmations go below 5.
  • First of all, we need to add a MultiSigWallet Smart Contract to Project. You can see there how to [Add new contract] into Project.
    โ€‹
  • Click on Alerting in the navigation โ€”> New Alert โ€”> State Change โ€”> Contract โ€”> Select Contract โ€”>Find MultiSigWallet Smart Contract and Choose it โ€”> Select variable required โ€”> Click on Criteria โ€”> Select **<** โ€”> Enter comparison value 5 โ€”> Next โ€”> Choose Alert Destination โ€”> Save.
  • Thatโ€™s it! Youโ€™ll get a notification whenever the number of required confirmations go below 5.
  • When Alert was created if we want to add a description, alert level, more alert destinations, or change the name, we can do that. You can see how in Edit Alert.
Last modified 1mo ago
Copy link