.. | ||
get-veocean-stats.md | ||
README.md |
description |
---|
Unlocking the Speed: Subgraph - Bringing Lightning-Fast Retrieval to On-Chain Data. |
Subgraph
What is the Subgraph?
The Ocean Subgraph is built on top of The Graph(the popular 😎 indexing and querying protocol for blockchain data). It is an essential component of the Ocean Protocol ecosystem. It provides an off-chain service that utilizes GraphQL to offer efficient access to information related to datatokens, users, and balances. By leveraging the subgraph, data retrieval becomes faster compared to an on-chain query. The data sourced from the Ocean subgraph can be accessed through GraphQL queries.
Imagine this 💭: if you were to always fetch data from the on-chain, you'd start to feel a little...old 👵. Like your queries are stuck in a time warp. But fear not! When you embrace the power of the subgraph, data becomes your elixir of youth. It's snappy, it's swift, and it's refreshingly retrievable. With the subgraph, you can sail through data like a sprightly dolphin 🐬
How to use the Subgraph?
You can utilize the Subgraph instances provided by Ocean Protocol or deploy your instance. Deploying your own instance allows you to have more control and customization options for your specific use case. To learn how to host your own Ocean Subgraph instance, refer to the guide available on the Deploying Ocean Subgraph page.
If you're eager to use the Ocean Subgraph, here's some important information for you: We've deployed an Ocean Subgraph for each of the supported networks. Take a look at the table below, where you'll find handy links to both the subgraph instance and GraphiQL for each network. With the user-friendly GraphiQL interface, you can execute GraphQL queries directly, without any additional setup. It's a breeze! 🌊
Ocean Subgraph deployments
Network | Subgraph URL | GraphiQL URL |
---|---|---|
Ethereum | Subgraph | GraphiQL |
Polygon | Subgraph | GraphiQL |
Binance Smart Chain | Subgraph | GraphiQL |
Energy Web Chain | Subgraph | GraphiQL |
Moonriver | Subgraph | GraphiQL |
Mumbai | Subgraph | GraphiQL |
Görli | Subgraph | GraphiQL |
Now that you're familiar with what the Ocean Subgraph is all about, get ready for some hands-on fun! In the following pages, we've prepared a few examples just for you. From running queries to exploring fascinating data, you'll have the chance to dive right into the Ocean Subgraph data. There, you'll find a wide range of additional code snippets and projects that showcase the power and versatility of the Ocean Subgraph. So, grab a virtual snorkel, and let's explore together! 🤿
\
{% hint style="info" %} For more examples, visit the subgraph GitHub repository, where you'll discover an extensive collection of code snippets and examples that highlight the Subgraph's capabilities and adaptability. {% endhint %}