citizenwallet / citizencoin

A local crypto currency for Brussels.
MIT License
3 stars 0 forks source link

How to make gasless transactions? #2

Open xdamman opened 1 year ago

xdamman commented 1 year ago

Use case:

A solution is to use a gas station network such as https://opengsn.org (v3 works on Polygon test net, not sure when it will work on prod, otherwise need to use v2.2) or a relay (e.g. https://docs.openzeppelin.com/defender/relay).

Example use cases for GSN:

(source: https://docs.opengsn.org/)

A GSN seems much more reliable as it is decentralized. It would be too easy to shut down a relay or to hold its owner responsible for the transactions happening through it. An alternative would be to create our own network of relays (and maybe all businesses / POS should act as relays?)

Next steps, dig into the doc of the last stable version of OpenGSN: https://docs-v2.opengsn.org