1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-207: change request with no subject merged in GitBook

This commit is contained in:
Ana Loznianu 2023-05-22 09:42:23 +00:00 committed by gitbook-bot
parent 2b3c6f7323
commit 6ee1baa940
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
4 changed files with 26 additions and 16 deletions

View File

@ -42,8 +42,8 @@
* [Customising a Market](developers/build-a-marketplace/customising-your-market.md)
* [Deploying a Market](developers/build-a-marketplace/deploying-market.md)
* [Ocean Subgraph](developers/ocean-subgraph/README.md)
* [List data NFTs](developers/using-ocean-subgraph/list-data-nfts.md)
* [List all Tokens](developers/using-ocean-subgraph/list-datatokens.md)
* [Get data NFTs](developers/using-ocean-subgraph/list-data-nfts.md)
* [Get datatokens](developers/using-ocean-subgraph/list-datatokens.md)
* [Get Data NFT Information](developers/using-ocean-subgraph/get-data-nft-information.md)
* [Get Datatoken Information](developers/using-ocean-subgraph/get-datatoken-information.md)
* [List Fixed Rate Exchanges](developers/using-ocean-subgraph/list-fixed-rate-exchanges.md)

View File

@ -30,4 +30,4 @@ If you're eager to use the Ocean Subgraph, here's some important information for
| Mumbai | [Subgraph](https://v4.subgraph.mumbai.oceanprotocol.com) | [GraphiQL](https://v4.subgraph.mumbai.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) |
| Görli | [Subgraph](https://v4.subgraph.goerli.oceanprotocol.com) | [GraphiQL](https://v4.subgraph.goerli.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) |
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 exciting queries to exploring fascinating data, you'll have the chance to dive right into the Ocean Subgraph data. So, grab a virtual snorkel, and let's explore together!
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. So, grab a virtual snorkel, and let's explore together!

View File

@ -1,14 +1,26 @@
# List data NFTs
---
description: 'Discover the World of NFTs: Retrieving a List of Data NFTs'
---
The result of following GraphQL query returns the information about data nfts.
# Get data NFTs
{% hint style="info" %}
Copy the query in the [GraphiQL interface](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) to fetch the results from the mainnet. For other networks use [this table](../ocean-subgraph/#ocean-subgraph-graphiql).
{% endhint %}
If you are already familiarized with the concept of NFTs, you're off to a great start. However, if you require a refresher, we recommend visiting the [data NFTs and datatokens page](../datanft-and-datatoken.md) for a quick overview. 
#### Query
Now, let us delve into the fascinating realm of utilizing the subgraph to extract a complete list of data NFTs that have been published using the Ocean contracts. By employing GraphQL queries, we can seamlessly retrieve the desired information from the subgraph. You'll see how simple it is :sunglasses:
```graphql
You'll find below an example of a GraphQL query that retrieves the first 10 data NFTs from the subgraph. The GraphQL query is structured to access the "nfts" route, extracting the first 10 elements. For each item retrieved, it retrieves the "id," "name," "symbol," "owner," "address," "assetState," "tx," "block," and "transferable" parameters.
There are several options available to see this query in action. Below, you will find three:
1. Run the GraphQL query.
2. Execute the query in Python by follwing the code snippet.
3. Run directly in the docs the query in JavaScript.
{% tabs %}
{% tab title="GraphQL query" %}
Copy the query 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) to fetch the results.
```
{
nfts (skip:0, first: 10, subgraphError:deny){
id
@ -23,12 +35,10 @@ Copy the query in the [GraphiQL interface](https://v4.subgraph.mainnet.oceanprot
}
}
```
{% endtab %}
#### Code snippets
{% tabs %}
{% tab title="Python" %}
The python script below can be used to run the the query. If you wish to change the network, then replace the value of variable `base_url` as needed.
The Python script below can be used to run the the query to fecth a list of data NFTs from the subgraph. If you wish to change the network, then replace the value of variable `base_url` as needed.
**Create script**

View File

@ -2,9 +2,9 @@
description: How to set up a MetaMask wallet on Chrome
---
# Set Up MetaMask Wallet 🦊
# Set Up MetaMask Wallet
Before you can publish or purchase assets on the Ocean Market, you will need a crypto wallet. As Metamask is one of the most popular crypto wallets around, we made a tutorial to show you how to get started with Metamask to use Ocean's tech.
Before you can publish or purchase assets, you will need a crypto wallet. As Metamask is one of the most popular crypto wallets around, we made a tutorial to show you how to get started with Metamask to use Ocean's tech.
> MetaMask can be connected with a TREZOR or Ledger hardware wallet but we don't cover those options below; see [the MetaMask documentation](https://metamask.zendesk.com/hc/en-us/articles/360020394612-How-to-connect-a-Trezor-or-Ledger-Hardware-Wallet).