From 7a7356f9f55297d261705c1eb528c1057ebfc301 Mon Sep 17 00:00:00 2001 From: Veronica Manuel Date: Fri, 9 Jun 2023 00:07:13 +0000 Subject: [PATCH] GITBOOK-473: change request with no subject merged in GitBook --- SUMMARY.md | 2 +- ...buyers-of-a-datatoken.md => list-datatoken-buyers.md} | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) rename developers/subgraph/{list-buyers-of-a-datatoken.md => list-datatoken-buyers.md} (90%) diff --git a/SUMMARY.md b/SUMMARY.md index 0a102ef0..218bab8e 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -59,7 +59,7 @@ * [Get datatoken information](developers/using-ocean-subgraph/get-datatoken-information.md) * [Get fixed-rate exchanges](developers/using-ocean-subgraph/list-fixed-rate-exchanges.md) * [Get veOCEAN stats](developers/subgraph/get-veocean-stats.md) - * [List buyers of a datatoken](developers/subgraph/list-buyers-of-a-datatoken.md) + * [List datatoken buyers](developers/subgraph/list-datatoken-buyers.md) * [Ocean.py](developers/ocean.py/README.md) * [Install](developers/ocean.py/install.md) * [Local Setup](developers/ocean.py/local-setup.md) diff --git a/developers/subgraph/list-buyers-of-a-datatoken.md b/developers/subgraph/list-datatoken-buyers.md similarity index 90% rename from developers/subgraph/list-buyers-of-a-datatoken.md rename to developers/subgraph/list-datatoken-buyers.md index 2534ab95..a8dfceac 100644 --- a/developers/subgraph/list-buyers-of-a-datatoken.md +++ b/developers/subgraph/list-datatoken-buyers.md @@ -4,7 +4,7 @@ description: >- list the buyers of a datatoken --- -# List buyers of a datatoken +# List datatoken buyers ## Step 1: Find the Network and Datatoken address @@ -45,7 +45,7 @@ Here are the networks and their corresponding chain IDs: Step 2: Query the Subgraph to see all buyers of the datatoken ------------------------------------------------------------- -Select the corresponding subgraph URL for the asset's network. Below are some of the popular subgraph URLs, to show you subgraph URL format. +Select the corresponding subgraph URL for the asset's network. Below are some of the popular subgraph URLs, to show you the subgraph URL format. ``` https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql? @@ -57,10 +57,11 @@ https://v4.subgraph.goerli.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean- https://v4.subgraph.mumbai.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql? ``` -You can then use the following example query to find what you're looking for (you can remove datatokens, or the lines with `where: {datatoken/consumer}` to tweak your filtering criteria. You can then explore the graphql editor via the links above to learn how to use it, and to add/remove information to the query.\ +You can then use the following example query to find what you're looking for (you can remove datatokens, or the lines with `where: {datatoken/consumer}` to tweak your filtering criteria. You can then explore the graphql editor via the links above to learn how to use it, and to add/remove information to the query. +Copy and paste the query below to fetch a list of data NFTs in the Ocean Subgraph [GraphiQL interface](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql). Note, that you must first fill in the missing fields for the datatoken address. -``` +```graphql query GetFilteredOrders { orders ( where: {