BLOG — Updates

321 days ago

Gelato Relay is Now Live on Linea!

Gelato Relay is now integrated with the Linea zkEVM, meaning that builders can now utilize Gelato’s essential infra to enhance user onboarding experiences by enabling smooth, gasless transactions within dApps.

Introducing Linea: A Deep Dive into zkEVM

Linea, a type 2 zero knowledge Ethereum Virtual Machine (zkEVM), mirrors the Ethereum environment as a rollup, providing developers with a familiar playground similar to the Ethereum mainnet.

What is a zkEVM?

A zkEVM allows for the execution and verification of smart contracts using Zero-Knowledge (ZK) proofs. By merging the functionality of the Ethereum blockchain with the security and scalability benefits of ZK proofs, zkEVMs promise to revolutionize the blockchain landscape.

This means that instead of everyone on the Ethereum network having to verify every TX (which can be slow and resource-intensive), a zkEVM allows just a single node to do the verification.

Introducing Type 2 zkEVMs

Type 2 zkEVMs strive to mirror the functionality of the EVM, maintaining compatibility with existing applications, but making minor tweaks to Ethereum's data structures. The ultimate objective is to streamline development and accelerate proof generation.

In Linea, the first transaction is crafted together with a wallet like Metmask. Transaction details are then passed on to services such as Infura and shared with validators. Within 12 seconds, a new block is born, and the transaction's 'execution trace' emerges.

This trace enters Linea's specialized proof system, transforming the Vortex and Arcane inner proof processes. It's then secured using lattice-based hashing and validated using the Polynomial Commitment Scheme. Next, it embarks on an outer proof process using PlonK, an upgrade from the previous Groth16 system.

The final step sees the proof returned to Ethereum Layer 1 for verification and confirmation, thereby sealing the transaction.

Introducing Gelato Relay

Gelato Relay is designed to relay your user's transactions on-chain, offering an extremely smooth UX for your decentralized applications. By handling secure, gasless transactions, Gelato Relay opens up new possibilities for web3 experiences. Users can now pay just by signing a message, or their transaction costs can be covered by the developer. As long as the gas costs are met through one of Gelato's supported payment methods, the rest is taken care of quickly, securely, and reliably.

Option 1: User-Paid Gas

If you prefer your users to cover their own gas costs, you can use the 'callWithSyncFeeERC2771' or 'callWithSyncFee' SDK method with the SyncFee payment method. This requires deploying a new contract that is compatible with Gelato's relay context contracts.

Option 2: Developer-Sponsored Gas

Gelato Relay allows developers to sponsor their user's gas costs based on specific conditions and rules. For instance, an app could sponsor a user's gas based on the presence of a certain NFT in their wallet, or limit the number of gasless transactions per day. Gelato Relay's soon-to-be-launched sponsor dashboard will make this customization process even easier.

For scenarios where developers want to cover all of their user's gas, two options exist. Developers can use 'sponsoredCallERC2771', where Gelato handles user signature verification, or 'sponsoredCall', which is designed for apps that already manage their security in-house. The latter option requires no change to existing smart contract logic.

Gelato Relay provides two payment methods: 1Balance and SyncFee. 1Balance is Gelato's bespoke payment system that lets you deposit in any supported token and use that balance to cover your relay costs. The SyncFee method, on the other hand, covers costs using either native or ERC-20 tokens.

SyncFee: The SyncFee method is a straightforward way to cover costs using either native or ERC-20 tokens.

The Potential of Gaming on Linea with Gelato Relay

With the combination of Linea and Gelato Relay, the landscape of blockchain gaming has been forever transformed. The diverse and expansive user base of the gaming industry is ready for widespread blockchain adoption.

Gelato Relay simplifies transactions by eliminating gas costs, enabling developers to absorb these expenses and thereby create immersive gaming experiences.

Linea, leveraging its zkEVM, provides functionalities equivalent to Ethereum, with the added advantages of enhanced scalability and security via zero-knowledge proofs. The synergy of Linea's quick, cost-efficient transactions and Gelato Relay's simplified approach to gasless operations ushers in a new era of enriching blockchain gaming experiences.

About Gelato

Get ready to witness a new era of web3 as Gelato, relied upon by over 400 web3 projects, powers the execution of millions of transactions in DeFi, NFT, and Gaming.

Gelato currently offers four services:

  • Web3 Functions: Connect your smart contracts to off-chain data & computation by running decentralized cloud functions.

  • Automate: Automate your smart contracts by executing transactions automatically in a reliable, developer-friendly & decentralized manner

  • Relay: Give your users access to reliable, robust, and scalable gasless transactions via a simple-to-use API

  • Gasless Wallet: A powerful SDK that enables developers to provide a world-class UX by combining Gelato Relay + Safe's Smart Contract Wallet, enabling Account Abstraction

Witness the ongoing journey towards a decentralized future led by Gelato!