Create Patches from smart contracts
Easily create alerts and automated workflows triggered by contract event emissions and function calls
Last updated
Easily create alerts and automated workflows triggered by contract event emissions and function calls
Last updated
Once you've added at least one smart contract to Dispatch, it's simple to get alerts or create automations using events or functions from your contract(s).
In addition to event emissions, Dispatch currently supports functions that modify a contract's state. In other words, we do NOT support alerting for functions with stateMutability
types of pure
or view
.
Find the contract you want to use Trigger events or functions from.
At the right end of the row for the selected contract, click on the ••• button and select the "+ Create Patch" option.
This should take you to Patch Builder, step 2: Trigger conditions.
Select the events and/or functions you want to use to trigger alerts or workflows by clicking the checkboxes next to them:
Click the "Continue" button.
Select the Action (where you want the event & event data to go).
The details will vary depending on the Action you've selected.
All Actions except for Dispatch Monitor provide an option for you to run a test to make sure Dispatch can deliver messages to your selected output.
Dispatch Monitor logs events to Dispatch only.
Customizing the Patch name is optional; Dispatch adds a default Patch name for you to save time.
Now's the perfect opportunity to double check your Trigger and Action details.
If all looks right, press the "Turn Patch on" button.