SlideShare a Scribd company logo
What is The Graph and How Does
it Work?
Introduction
2
If you have been keeping up with the advances in the blockchain space, you may have
heard of the Graph protocol. The Graph (GRT) is a decentralized, censorship resistant,
and open-source indexing platform for blockchain data. By specific norms or schemes,
data is arranged in an organized manner by the Graph. The Graph Protocol is often
referred to as the Google of Blockchain.
In case you are still not clear on “what is the Graph”, in this post we try to answer
your query in further detail, and also see the answer to another popular query, “how
does the Graph Work?”
What is The Graph?
3
In simple terms, the Graph is a decentralized protocol that helps for indexing and
querying data from blockchains. With the help of the Graph, it’s possible to query data
that is usually difficult for users to access directly. The Graph protocol can be used to
search for any Ethereum data through simple queries.
Why was the Graph protocol needed in the first place? DeFi and NFT projects like
Uniswap and Bored Ape Yacht Club store data on Ethereum Blockchain that’s hard to read
or query. For Bored Ape Yacht Club, the information like supply and other basic
information is available. This is because it is totally programmed into smart contracts. But
for advanced queries like aggregation and search, as well as for filtering across specific
address holdings, smart contracts are not enough. To obtain this data, we need to
process every transaction that was ever emitted and read the metadata from IPFS (Inter
Planetary File System) using Token ID and IPFS hash. Moreover the whole process will
take hours or even days to finally access the data we need.
History of the Graph Protocol
Nowadays, web applications like Facebook, Google, Youtube, and LinkedIn are well-
known. But these applications store data with centralized corporations that play a major
role in monopolism. This centralization will be in the hands of a few, and this affects the
reduction of economic opportunities and self-determination for many.
Even after the introduction of the blockchain-based decentralized applications (DApps),
the data was either owned or managed by the community. In these cases, the data is in
the hands of users as they control their data. As DApps are becoming more popular, the
data is also increasing rapidly. Operations like filtering, pagination and sorting require
creating and maintaining indexes, which takes lots of time to process.
To change this, the Graph was introduced. The Graph protocol provides the
infrastructure layer for the emerging web3 and solves the issues with querying and
organizing data.
How Does the Graph Work?
5
Now that we know ‘what is graph blockchain?’ let’s have a look at ‘how does the graph
work?’ Through a subgraph description, the Graph learns how and what data to index on
Ethereum: this is known as a subgraph manifest. After writing the subgraph manifest, we
use the Graph CLI to store the definition in IPFS and command the indexers to index data
for that subgraph.
The Graph works by first allowing decentralized applications to add data to Ethereum
through transactions on smart contracts. Through the transaction, one or more events
are emitted by the smart contract. The Graph Node then continuously scans for the new
blocks and the data for your subgraphs that they may contain. When the Node finds one,
it updates the data entities that the Graph Node stores in response to Ethereum events.
The application then queries the Graph Node through a complex process using GraphQL
to get the index data. Finally, the data sourced is displayed to the end user.
The Graph is among the newer web3 projects, launched only in the
December of 2020. The Graph protocol assures users with
trustworthy on-chain data in the field of blockchain, and many well-
known blockchain platforms already endorse the project. The future
of GRT looks very bright indeed.
6

More Related Content

PPTX
Graph protocol for accessing information about blockchains and d apps
PDF
Blockchain Development
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
PDF
CIKMTutorial.pdf
DOCX
How does ethereum work, anyway?
PPTX
Linked data indexing of distributed ledgers
PPTX
Ethereum Block Chain
Graph protocol for accessing information about blockchains and d apps
Blockchain Development
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
CIKMTutorial.pdf
How does ethereum work, anyway?
Linked data indexing of distributed ledgers
Ethereum Block Chain

Similar to what is the graph (20)

PDF
blockchain class 3.pdf
PDF
Blockchain Chapter #4.pdf
PPTX
UNIT 1 (1).pptx of block chain technologies
PPTX
Block chain - Smart contacts.pptx
PPTX
Introduction to blockchain & cryptocurrencies
PDF
A Pharo story on blockchain technology
PDF
Blog.pdf
PDF
Blockchains and Adult Education
PDF
Analyzing Blockchain Transactions in Apache Spark with Jiri Kremser
PPTX
Node.js Blockchain Implementation
PDF
Blockchains - Technical foundations
PPTX
Understanding blockchain
DOCX
Blockchain & decentralized finance (defi) | How blockchain technology is coup...
PPTX
Hello world contract
PPTX
Blockchain, Ethereum and Business Applications
PPTX
The Blockchain and JavaScript
PDF
Blockchain fundamentals
PDF
Indexing Decentralized Data with Ethereum, IPFS & The Graph
PPTX
module-1.pptx
PPTX
Ethereum
blockchain class 3.pdf
Blockchain Chapter #4.pdf
UNIT 1 (1).pptx of block chain technologies
Block chain - Smart contacts.pptx
Introduction to blockchain & cryptocurrencies
A Pharo story on blockchain technology
Blog.pdf
Blockchains and Adult Education
Analyzing Blockchain Transactions in Apache Spark with Jiri Kremser
Node.js Blockchain Implementation
Blockchains - Technical foundations
Understanding blockchain
Blockchain & decentralized finance (defi) | How blockchain technology is coup...
Hello world contract
Blockchain, Ethereum and Business Applications
The Blockchain and JavaScript
Blockchain fundamentals
Indexing Decentralized Data with Ethereum, IPFS & The Graph
module-1.pptx
Ethereum
Ad

More from danishshah40 (13)

PPTX
what is a blockchain api.pptx
PPTX
ordinals nfts.pptx
PPTX
What Is a Consortium Blockchain.pptx
PPTX
advantages and disadvantages of decentralization.pptx
PPTX
what is tokenomics.pptx
PPTX
what is asset tokenization.pptx
PPTX
defi hacks.pptx
PPTX
defi hacks.pptx
PPTX
what is a crypto exchange
PPTX
The Physical Layer in OSI Model Explained
PPTX
What are altcoins
PPTX
6 best decentralized storage network.pptx
PPTX
What is a DAO and How Does it Work? | EVM compatible sharded blockchain
what is a blockchain api.pptx
ordinals nfts.pptx
What Is a Consortium Blockchain.pptx
advantages and disadvantages of decentralization.pptx
what is tokenomics.pptx
what is asset tokenization.pptx
defi hacks.pptx
defi hacks.pptx
what is a crypto exchange
The Physical Layer in OSI Model Explained
What are altcoins
6 best decentralized storage network.pptx
What is a DAO and How Does it Work? | EVM compatible sharded blockchain
Ad

Recently uploaded (20)

PDF
Profitable Farming Starts with AI in Agriculture | Rubixe
PDF
Sustainable Fire Safety How AMCs Contribute to a Greener Future.pdf
PDF
The New Drive_ How the Transportation Business is Reinventing Itself by Ednei...
PDF
5 Best Sites to Buy Snapchat Accounts (Aged & Pva).pdf
PPTX
Social Media Marketing Services in USA | Boost Your Brand
PDF
How to Inspect Exterior Paint for Early Signs of Summer Damage.pdf
PDF
Green minimalist professional Business Proposal Presentation.pdf
PDF
Digital marketing strategy slides .pdf
PPTX
Expert Tree Pruning & Maintenance Services in Sydney
PDF
How Firewalls Stop Cyber Attacks Before They Happen?
PDF
Why Corporate Relocations Need Professional Packers and Movers.pdf
PPTX
Driving Accountability The Power of Business Responsibility and Sustainabilit...
PDF
Robert Hume San Diego_ How Firefighting Tools and Technology Have Transformed...
PDF
2025 Electrician Marketing Trends Report | Destiny Marketing Solutions
PPTX
How After-School Art Classes Enhance Social Skills.pptx
PDF
Top 7 Cybersecurity Companies in Abu Dhabi
PDF
Legacy Application Modernisation Services.pdf
PPTX
Precision Mapping with Scan to BIM Services
PDF
Digital Marketing Skills in Demand for 2025.pdf
PPTX
The Rise of Work-from-Home Internships.pptx
Profitable Farming Starts with AI in Agriculture | Rubixe
Sustainable Fire Safety How AMCs Contribute to a Greener Future.pdf
The New Drive_ How the Transportation Business is Reinventing Itself by Ednei...
5 Best Sites to Buy Snapchat Accounts (Aged & Pva).pdf
Social Media Marketing Services in USA | Boost Your Brand
How to Inspect Exterior Paint for Early Signs of Summer Damage.pdf
Green minimalist professional Business Proposal Presentation.pdf
Digital marketing strategy slides .pdf
Expert Tree Pruning & Maintenance Services in Sydney
How Firewalls Stop Cyber Attacks Before They Happen?
Why Corporate Relocations Need Professional Packers and Movers.pdf
Driving Accountability The Power of Business Responsibility and Sustainabilit...
Robert Hume San Diego_ How Firefighting Tools and Technology Have Transformed...
2025 Electrician Marketing Trends Report | Destiny Marketing Solutions
How After-School Art Classes Enhance Social Skills.pptx
Top 7 Cybersecurity Companies in Abu Dhabi
Legacy Application Modernisation Services.pdf
Precision Mapping with Scan to BIM Services
Digital Marketing Skills in Demand for 2025.pdf
The Rise of Work-from-Home Internships.pptx

what is the graph

  • 1. What is The Graph and How Does it Work?
  • 2. Introduction 2 If you have been keeping up with the advances in the blockchain space, you may have heard of the Graph protocol. The Graph (GRT) is a decentralized, censorship resistant, and open-source indexing platform for blockchain data. By specific norms or schemes, data is arranged in an organized manner by the Graph. The Graph Protocol is often referred to as the Google of Blockchain. In case you are still not clear on “what is the Graph”, in this post we try to answer your query in further detail, and also see the answer to another popular query, “how does the Graph Work?”
  • 3. What is The Graph? 3 In simple terms, the Graph is a decentralized protocol that helps for indexing and querying data from blockchains. With the help of the Graph, it’s possible to query data that is usually difficult for users to access directly. The Graph protocol can be used to search for any Ethereum data through simple queries. Why was the Graph protocol needed in the first place? DeFi and NFT projects like Uniswap and Bored Ape Yacht Club store data on Ethereum Blockchain that’s hard to read or query. For Bored Ape Yacht Club, the information like supply and other basic information is available. This is because it is totally programmed into smart contracts. But for advanced queries like aggregation and search, as well as for filtering across specific address holdings, smart contracts are not enough. To obtain this data, we need to process every transaction that was ever emitted and read the metadata from IPFS (Inter Planetary File System) using Token ID and IPFS hash. Moreover the whole process will take hours or even days to finally access the data we need.
  • 4. History of the Graph Protocol Nowadays, web applications like Facebook, Google, Youtube, and LinkedIn are well- known. But these applications store data with centralized corporations that play a major role in monopolism. This centralization will be in the hands of a few, and this affects the reduction of economic opportunities and self-determination for many. Even after the introduction of the blockchain-based decentralized applications (DApps), the data was either owned or managed by the community. In these cases, the data is in the hands of users as they control their data. As DApps are becoming more popular, the data is also increasing rapidly. Operations like filtering, pagination and sorting require creating and maintaining indexes, which takes lots of time to process. To change this, the Graph was introduced. The Graph protocol provides the infrastructure layer for the emerging web3 and solves the issues with querying and organizing data.
  • 5. How Does the Graph Work? 5 Now that we know ‘what is graph blockchain?’ let’s have a look at ‘how does the graph work?’ Through a subgraph description, the Graph learns how and what data to index on Ethereum: this is known as a subgraph manifest. After writing the subgraph manifest, we use the Graph CLI to store the definition in IPFS and command the indexers to index data for that subgraph. The Graph works by first allowing decentralized applications to add data to Ethereum through transactions on smart contracts. Through the transaction, one or more events are emitted by the smart contract. The Graph Node then continuously scans for the new blocks and the data for your subgraphs that they may contain. When the Node finds one, it updates the data entities that the Graph Node stores in response to Ethereum events. The application then queries the Graph Node through a complex process using GraphQL to get the index data. Finally, the data sourced is displayed to the end user.
  • 6. The Graph is among the newer web3 projects, launched only in the December of 2020. The Graph protocol assures users with trustworthy on-chain data in the field of blockchain, and many well- known blockchain platforms already endorse the project. The future of GRT looks very bright indeed. 6