EssentialAutotask 🤝 OpenZeppelin Defender

Learn how to use 0xEssential's OSS code with OpenZeppelin Defender as your relaying service

Meta-transaction flows require developers to setup a relaying service. This web server is responsible for receiving meta-transaction requests and submitting them to the network, paying the transaction fee on behalf of the meta-tx signer.

0xEssential recommends using OpenZeppelin Defender for your relaying service. We provide deploy-ready code that you can use in your own OpenZeppelin Autotask. You can easily use our code, while paying for your users' transactions in a secure way.

OpenZeppelin Registration & Setup

Sign up for OpenZeppelin Defender at https://openzeppelin.com/defender/.

Relayer

Once your registration is confirmed, navigate to the Relayer section and create your first Relayer. You'll most likely want to select Mumbai as the network.

Copy the API Key and Secret Key someplace secure.

You'll need to fund your Relayer so it can pay for transactions - copy the Relayer address from the OpenZeppelin UI and provide that address funds from a faucet or via transfer.

Autotask

Navigate to the Autotask section and create your first Autotask.

Choose the Webhook option and connect to the Relayer you just created.

Don't worry about the code section - we will deploy our own code from the command line in the next step.

Copy the Webhook URI from the OpenZeppelin UI - you'll need this in your dApp. You also need to copy the Autotask URI from your browser's URL - you'll need this in your Autotask project environment.

Secrets

0xEssential's Autotask code currently depends on an RPC API other than OpenZeppelin's integrated node. Until EIP-3668 is supported more widely, our OSS depends on an Infura account and API key.

Set your Infura API key as an OpenZeppelin secret by visiting the Autotask section and clicking the Secrets button. Use infuraKey as the Name and your API key as the value.

Clone & Deploy

0xEssential offers a deploy-ready OSS project with deploy scripts that you can use with your OpenZeppelin Autotask.

Last updated