mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
GITBOOK-271: Updated the veocean stats subgraph page
This commit is contained in:
parent
b4114386ad
commit
4b940a1a6d
@ -49,7 +49,7 @@
|
|||||||
* [Get datatokens](developers/using-ocean-subgraph/list-datatokens.md)
|
* [Get datatokens](developers/using-ocean-subgraph/list-datatokens.md)
|
||||||
* [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)
|
||||||
* [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)
|
||||||
* [Ocean Libraries](developers/ocean-libraries/README.md)
|
* [Ocean Libraries](developers/ocean-libraries/README.md)
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
# Get veOcean stats
|
---
|
||||||
|
description: 'Discover the World of veOCEAN: Retrieving a Stats'
|
||||||
|
---
|
||||||
|
|
||||||
If you are already familiarized with veOCEAN, you're off to a great start. However, if you need a refresher, we recommend visiting the [veOCEAN](../../rewards/veocean.md) page for a quick overview.
|
# Get veOCEAN stats
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If you are already familiarized with veOCEAN, you're off to a great start :sunglasses:. However, if you need a refresher, we recommend visiting the [veOCEAN](../../rewards/veocean.md) page for a quick overview :mag:.
|
||||||
|
|
||||||
|
On this page, you'll find a few examples to fetch the stats of veOCEANS from the Ocean Subgraph. These examples serve as a valuable starting point to help you retrieve essential information about veOCEAN. However, if you're eager to delve deeper into the topic, we invite you to visit our [GitHub](https://github.com/oceanprotocol/ocean-subgraph/blob/main/test/integration/VeOcean.test.ts) repository. There, you'll discover a wealth of additional examples, which provide comprehensive insights. Feel free to explore and expand your knowledge! :books:
|
||||||
|
|
||||||
### Get the total amount of locked Ocean tokens
|
### Get the total amount of locked Ocean tokens
|
||||||
|
|
||||||
@ -106,11 +114,11 @@ query {
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
### Get the veOcean holders list
|
### Get the veOCEAN holders list
|
||||||
|
|
||||||
{% tabs %}
|
{% tabs %}
|
||||||
{% tab title="JavaScript" %}
|
{% tab title="JavaScript" %}
|
||||||
You can utilize the following JavaScript code snippet to execute the query and fetch the list of veOcean holders.
|
You can utilize the following JavaScript code snippet to execute the query and fetch the list of veOCEAN holders.
|
||||||
|
|
||||||
```runkit nodeVersion="18.x.x"
|
```runkit nodeVersion="18.x.x"
|
||||||
var axios = require('axios');
|
var axios = require('axios');
|
||||||
@ -144,7 +152,7 @@ axios(config)
|
|||||||
{% endtab %}
|
{% endtab %}
|
||||||
|
|
||||||
{% tab title="Python" %}
|
{% tab title="Python" %}
|
||||||
You can employ the following Python script to execute the query and fetch the list of veOcean holders from the subgraph. 
|
You can employ the following Python script to execute the query and fetch the list of veOCEAN holders from the subgraph. 
|
||||||
|
|
||||||
{% code title="get_veOcean_holders.py" %}
|
{% code title="get_veOcean_holders.py" %}
|
||||||
```python
|
```python
|
||||||
@ -184,7 +192,7 @@ python get_veOcean_holders.py
|
|||||||
{% endtab %}
|
{% endtab %}
|
||||||
|
|
||||||
{% tab title="Query" %}
|
{% tab title="Query" %}
|
||||||
To fetch the list of veOcean holders in the Ocean Subgraph [GraphiQL](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) interface, you can use the following query:
|
To fetch the list of veOCEAN holders in the Ocean Subgraph [GraphiQL](https://v4.subgraph.mainnet.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph/graphql) interface, you can use the following query:
|
||||||
|
|
||||||
```graphql
|
```graphql
|
||||||
query {
|
query {
|
||||||
|
Loading…
Reference in New Issue
Block a user