48 days ago
Gelato RaaS integrates The Graph to simplify interchain data queries on custom L2s
Gelato's Rollup as a Service(RaaS) allows developers to deploy tailor-made L2 chains effortlessly with just one click, complete with native Account Abstraction with +19 out-of-box infrastructure partners. The Graph is enriching Gelato’s Rollup Marketplace offering by ensuring seamless indexing and querying of L2 chain data, enabling decentralized data access for developers.
The Graph: Streamlining Data Indexing
Data Indexing Challenge
The challenge with blockchain data indexing arises from projects with comprehensive smart contracts, like Uniswap and Bored Ape Yacht Club. Tasks like identifying an Ape's owner or accessing specific contract details can be complex. More advanced real-world queries, like aggregating Apes owned by a particular address or filtering by their characteristics, aren't directly executable with the contract, requiring the processing of every transfer event, reading metadata from IPFS, and extensive aggregation.
Using independent server setups, while a potential solution, is resource-intensive and may introduce a centralized point of failure. Added complexities arise from blockchain nuances like finality, chain reorganizations, and uncle blocks.
How The Graph Addresses the Issue
The Graph streamlines the challenge of blockchain data indexing and querying. Using subgraph descriptions, it specifies which smart contracts to index, the events to monitor, and how to manage and store this data. After defining the criteria, it's stored in IPFS, signaling the indexing commencement.
Here's a simplified process:
- A dapp initiates a transaction on a smart contract.
- While executing the transaction, the contract is emitting specific events.
- The Graph Node is continuously scanning for new Ethereum blocks and associated events.
- Upon detecting relevant Ethereum events, the Graph Node uses mapping functions to either create or update the data in storage.
- Dapps then access this indexed data for end-users, completing the cycle.
Gelato Rollup as a Service & The Graph
Gelato's Rollup as a Service, in tandem with subgraphs on The Graph, enhances L2 chains with advanced data indexing, enabling developers to efficiently query vast data sets like token transactions and contract details. This integration not only streamlines development but also offers 60-98% lower monthly costs, zero setup fees, unparalleled uptime, and access to a wide network of global Indexers
With over 1 trillion queries served, The Graph’s infrastructure serves a community of over 53,000+ developers, including some of web3's leading projects such as Uniswap, Snapshot, PancakeSwap, SushiSwap & many more. Through The Graph Network, Gelato RaaS developers gain efficient access to blockchain data enriching their custom L2 chains for any vertical in the space, just as Defi, NFT, Gaming, and more.
For those interested in learning more about The Graph, we encourage you to check out their docs! If you’d like a direct introduction to The Graph ecosystem, we are happy to connect you as well.
Gelato is a Web3 Cloud Platform empowering developers to create automated, gasless, and off-chain-aware Layer 2 chains and smart contracts. Over 400 web3 projects rely on Gelato for years to facilitate millions of transactions in DeFi, NFTs, and gaming.
Gelato RaaS: Deploy your own tailor-made ZK or OP L2 chains in a single click with native Account Abstraction and all Gelato middleware baked in.
VRF: Gelato VRF provides fast, on-chain verifiable randomness for blockchain applications.
Functions: Serverless, event-driven functions to automate blockchain transactions.
Relay: Give your users access to reliable, robust, and scalable gasless transactions via a simple-to-use API.
Account Abstraction SDK: Gelato has partnered with Safe, to build a fully-fledged Account Abstraction SDK, combining Gelato's industry's best gasless transaction capabilities, with the industry's most secure smart contract wallet.
Subscribe to our newsletter and turn on your Twitter notifications to get the most recent updates about the Gelato ecosystem! If you are interested in being part of the Gelato team and building the future of the Internet browse the open positions and apply here.