Example front end using meta-transactions with Defender Relay and signing using EIP712

Hi,
I´m looking for a full code example of a Meta-transaction using the Relayer and the web browser. The meta-transaction example should be signed on the front-end with Metamask with eip712. I have checked https://github.com/spalladino/workshop-defender-meta-txs And this example does not have the front-end code.

Can you recommend me an example or a library? so I can join both parts web/backend. As GSN examples.

Thanks!
Mariano

1 Like

Hey @elranu! The frontend code is in the app folder, the function you want in particular is:

Also, note that we have migrated the workshops code to a single repo under the OpenZeppelin org on github at https://github.com/OpenZeppelin/workshops

1 Like

Sorry, I read directly the scripts I didn´t see the app.

Thanks!
Mariano

1 Like

No worries! Let me know if you have any questions about how it works!

1 Like

Hi @elranu,

Welcome to the community :wave:

There is also a video recording of the workshop, I found this helpful when setting up my relayer along with the code from the workshop.

1 Like