Menu

Create your first Subgraph for your smart contract with The Graph
📰

Create your first Subgraph for your smart contract with The Graph

DEV Community: graphql·Ignacio Pastor Sánchez·3 days ago
#WVR4uCjw
#devtographql#devto#dev#entity#event
Long article (2526 words) — no AI summary yet.
Reading 0:00
15s threshold

What is the Graph and why do you care?

The Graph is a protocol for indexing and querying blockchain data. It enables you to use your smart contract's events to create and update entities that represent the internal state of such a smart contract.

Why is this useful? Imagine a smart contract that requires an intensive lookup of information. An NFT marketplace is a good example. You have potentially thousands of listings going on at the same time, assuming that you need a listing ID to buy an item from another user. How do you identify a specific listing that you are interested in? How do you find it?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.