Gelato Relay V2

Gelato
Gelato Network
Published in
3 min readDec 15, 2022

In 2021, Gelato shipped its V1 of Relay, which has been stable in production for over a year and relaying millions of transactions from top web3 protocols such as Connext, across 10+ EVM networks.

In 2022, we built V2 of Gelato Relay and a brand new payment system- Gelato 1Balance. The aim of this is to make it easier for all web3 developers to leverage our proven Multichain Relay APIs for high-throughput, reliable transaction sending and gasless user experiences.

In addition to the existing reliable transaction relay API, Gelato Relay V2 provides developers with the means to easily integrate gasless user experiences into their web3 applications. This allows web3 developers to remove the friction of transaction sending and gas payments from their users, reducing onboarding frictions and providing a superior user experience. To help developers hit the ground running, we’ve also released a new Relay SDK with brand new capabilities made possible thanks to our new revolutionary cross-chain relayer payment system: Gelato 1Balance.

Gelato 1Balance

Before 1Balance the only relayer payment option developers were able to use required them to encode relay payments into their smart contracts, which added friction, complexity, and overhead costs. However, with the advent of 1Balance, developers now have a relayer payment system that completely removes the need for modifying their smart contract flows. It provides a much simpler and more efficient way to pay relayers on all networks your app lives on from just a single balance. It can also be used by developers to sponsor relay transactions for their application users, providing a superb user experience and onboarding flow.

What does 1Balance offer?

Conventional relay payments are coupled with the relayed transaction on-chain. By decoupling the payment from the relayed transaction, Gelato 1Balance gains a whole suite of advantages over conventional systems:

Simple & Non-Intrusive: 1Balance off-loads your fee payment smart contract complexity off-chain allowing your on-chain code to focus entirely on the required use case.

Accurate Fees: Conventional relaying systems use imprecise fee estimations, which are prone to inaccuracies due to the volatile nature of the gas market. This is usually handled by consistently overcharging the user, harming their wallet in the long-term. 1Balance uses periodic settlements and transaction receipts after the relayed transaction is confirmed on-chain, charging users only for exactly what they use.

Efficient: Zero additional costs for fee processing.

Unlimited use cases: Synchronous on-chain relayer payments only work if the target smart contract has a balance. Use cases that do not require funds (NFT listings, call forwards etc.) are not supported out-of-the-box with self paying transactions, but work with no additional logic needed when using 1Balance.

MEV: Frontrunners can snipe on-chain payments to relayers if no proper permissions are put in place. As 1Balance payment is off-chain, it is automatically MEV protected with no additional on-chain logic needed.

Multichain agnostic: Usually relay transactions only allow for payments to the relayer on the chain they are sent to. With 1Balance, you can pay for all transactions across all the networks you use from the same token balance. The locus of the relay transaction execution is completely decoupled from its relayer fee payment.

Gas Sponsorship: Last but not least, you can sponsor either all your user’s gas or set custom rules based on your needs. This vastly improves the user onboarding experience and gets customers using and transacting with your application as quickly as possible.

About Gelato

Gelato is web3’s decentralized backend empowering builders to create augmented smart contracts that are automated, gasless & off-chain aware.

Leading web3 projects rely on Gelato to power the execution of millions of transactions across DeFi, NFT and Gaming.

Connect with us

Twitter | Telegram | Discord

--

--