Quickstart
Create a Convect Function
In your preferred project, create a new Convect Function.
Write your handler
This example uses Wagmi CLI to generate the ABI and token address. Using Wagmi and ABIs is entirely optional. Alternatively, you can specify the event signature in string format by replacing eventName
and abi
with the signature
property.
Convention
For better readability, define related handlers in a separate file as shown above.
Export a convect function
Good to know
When your Convect Function receives batches of transactions, it will call all matching transaction handlers in the order they are specified in the
handlers
array.Authenticate & Upload a new deployment
Authenticate with the command below.
Create a new deployment with the command below.