The workshop was recorded on the 11th February 2021 and led by Santiago Palladino – Lead Developer at OpenZeppelin.
The workshop covers the following:
You can watch the video, view the slides, try the demo app and setup your own relayer and app using the code from the workshop.
Setting up a Relayer in OpenZeppelin Defender automatically generates and stores a private key specifically for your use in a secure vault, so you don’t need to worry about securing keys on your servers.
A Defender Relayer will also automatically pick up the best gas price for your transaction, manage nonce locks, and resubmit your transactions with updated gas prices during network congestion. Relayers also provide high availability by broadcasting your transactions via multiple providers.
Defender Autotasks are serverless functions that work in tandem with Relayers, allowing you to define custom logic for triggering transactions. Autotasks can be triggered via a webhook, allowing you to receive a signed payload from a user, running your logic to decide whether to relay the meta transaction, and easily invoking a Relayer to send it.
This allows you to set up a fully secure, reliable, and highly-available meta-tx engine specific for your application, with no gas fees overhead, and without having to roll out your own infrastructure.
20210211 – Defender meta-txs workshop.pdf
You can use the demo app to register a name in the names registry contract using meta-transactions.
The workshop code consists of a sample names registry contract, that accepts registrations for names either directly or via a meta-transaction, along with a client dapp, plus the meta-transaction relayer implementation.
The code can be found in the OpenZeppelin workshops mono-repository:
github.com/OpenZeppelin/workshops/tree/master/01-defender-meta-txs
See the instructions in the repository to run the workshop code.
Learn more about OpenZeppelin Defender: openzeppelin.com/defender
Sign up for free: defender.openzeppelin.com
Apply for mainnet access: openzeppelin.com/apply
Ask questions on the community forum: forum.openzeppelin.com