insulineru / relay-safe-session-key-ui

SessionKey implementation with Safe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Session Key UI

This project showcases how to use Session Keys to enable Signless Ux from a Safe.

Web3 App

https://safe-signless-trade.web.app

Note
The Gelato Safe module is deployed on Goerli at 0xEBF7dc15b153601DdA7594DC7bC42105c1E06844 and the counter contract at 0x87CA985c8F3e9b70bCCc25bb67Ae3e2F6f31F51C

When enabling Signless the webapp will:

  • Check if there are already sessionkeys available in the browser
  • Check if these keys are still vaild
  • Create new session keysif needed
  • Use session keys to sign following transactions

Interesting code parts:

  • Enabling Gelato Safe module within the Safe here
  • Whitelist transaction here
  • Creating session Keys here
  • Signless Transaction here

Get Started

Please add your sponsor key in here here :

  const GELATO_RELAY_API_KEY = "YOUR GELATO SPONSOR KEY";
yarn start

About

SessionKey implementation with Safe


Languages

Language:TypeScript 84.8%Language:CSS 6.6%Language:HTML 6.2%Language:JavaScript 2.4%