mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-01 15:55:34 +01:00
GITBOOK-473: change request with no subject merged in GitBook
This commit is contained in:
parent
e4b4e1f51b
commit
7a7356f9f5
@ -59,7 +59,7 @@
|
|||||||
* [Get datatoken information](developers/using-ocean-subgraph/get-datatoken-information.md)
|
* [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 fixed-rate exchanges](developers/using-ocean-subgraph/list-fixed-rate-exchanges.md)
|
||||||
* [Get veOCEAN stats](developers/subgraph/get-veocean-stats.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)
|
* [Ocean.py](developers/ocean.py/README.md)
|
||||||
* [Install](developers/ocean.py/install.md)
|
* [Install](developers/ocean.py/install.md)
|
||||||
* [Local Setup](developers/ocean.py/local-setup.md)
|
* [Local Setup](developers/ocean.py/local-setup.md)
|
||||||
|
@ -4,7 +4,7 @@ description: >-
|
|||||||
list the buyers of a datatoken
|
list the buyers of a datatoken
|
||||||
---
|
---
|
||||||
|
|
||||||
# List buyers of a datatoken
|
# List datatoken buyers
|
||||||
|
|
||||||
## Step 1: Find the Network and Datatoken address
|
## 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
|
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?
|
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?
|
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 {
|
query GetFilteredOrders {
|
||||||
orders (
|
orders (
|
||||||
where: {
|
where: {
|
Loading…
Reference in New Issue
Block a user