Assets
Type: Asset
Description
The following table provides a detailed overview of the metrics methodology used to track and measure the performance of a particular asset. To get more information about the object / class itself, please refer to the Assets section.
Key | Description |
---|
Sample queries
You can get the data of a particular asset by running the following query, filtered by the asset's symbol.
If you need more information about the asset, you can use the assets
query with the metrics
field.
This will return all the metrics available for the asset (you can also add variations
, changeAbsolutes
and changePercentages
)
changeAbsolutes
is the absolute change in the metric value within the last24h
,7d
,30d
,90d
or1y
.changePercentages
is the percentage change in the metric value within the last24h
,7d
,30d
,90d
or1y
.
Refer to the Metrics section for more information.
Get active validators of Ethereum
To get the active validators (which is a Metric) and base data of Ethereum
, you can run the following query.
- Query
- Response
{
assets(where: { symbols: ["ETH"] }, limit: 1) {
id
name
slug
description
symbol
metrics(where: { metricKeys: ["active_validators"] }, limit: 1) {
metricKey
label
defaultValue
}
}
}
{
"data": {
"assets": [
{
"id": "ID",
"name": "Ethereum",
"slug": "ethereum-2-0",
"description": "the world's largest and most decentralised Layer1 blockchain. The network is used for building dApps, holding assets, transacting and communicating without being controlled by a central authority. The Ethereum vision is to build a digital future on a global scale, that is powerful enough to help all of humanity",
"symbol": "ETH",
"metrics": [
{
"metricKey": "active_validators",
"label": "Active Validators",
"defaultValue": 123456789
}
]
}
]
}
}