Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Quartz)
  • No Skin
Collapse
Brand Logo

Web3 Developers Community Forum

  1. Home
  2. Web3 Tech
  3. Introduce about The Graph

Introduce about The Graph

Scheduled Pinned Locked Moved Web3 Tech
web3
1 Posts 1 Posters 415 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • manhstevenM Offline
    manhstevenM Offline
    manhsteven
    wrote on last edited by manhsteven
    #1

    Graph is a decentralized query protocol and indexing service for the blockchain. It allows developers toeasily track events being emitted from smart contracts on various networks, and write custom data
    transformation scripts, which are run in real time. The data is also made available through a simple GraphQL API which developers can then use to display things on their frontends.

    How it Works:

    1. A dApp sends a transaction and some data gets stored in the smart contract.

    2. This smart contract then emits one or more events.

    3. Graph’s node keeps scanning Ethereum for new blocks and the data for your subgraph that these blocks may
      contain.

    4. If the node finds an event you were looking for and defined in your subgraph, it runs the data
      transformation scripts (mappings) you defined. The mapping is a WASM (Web assembly) module that creates or updates data Entities on the Graph Nodes in response to the event.

    5. We can query the Graph’s node for this data using the GraphQL Endpoint

    (Referenced From The Graph’s website)

    1 Reply Last reply
    4
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups