Assets
This page displays the JSON representation of the "Assets" object and a class diagram, providing a visual representation of its structure.
An Asset
refers to a digital or virtual property that has economic value. In PoS systems, assets can also be used as collateral to participate in the validation process, allowing holders to earn rewards for helping to maintain the integrity of the network.
You can query the different properties of the Assets object, including connected Reward Options
, Metrics
, Tags
and base data like the Symbol
, Slug
and more.
The information presented on this page will give you a comprehensive understanding of the Assets object and its properties.
- Class Diagram
- JSON
{
"Asset": {
"id": "ID!",
"rewardOptionsWithAssetAsInput": {
"where": "RewardOptionsWhere",
"order": "RewardOptionsOrder",
"limit": "Int",
"offset": "Int",
"type": "[RewardOption!]"
},
"rewardOptionsWithAssetAsOutput": {
"where": "RewardOptionsWhere",
"order": "RewardOptionsOrder",
"limit": "Int",
"offset": "Int",
"type": "[RewardOption!]"
},
"metrics": {
"where": "MetricsWhere",
"order": "MetricsOrder",
"limit": "Int",
"offset": "Int",
"type": "[Metric!]"
},
"tags": {
"type": "[Tag!]"
},
"faqs": {
"type": "[AssetFaq!]"
},
"underlyingAssets": {
"where": "AssetsWhere",
"order": "AssetsOrder",
"limit": "Int",
"offset": "Int",
"type": "[Asset!]"
},
"name": "String!",
"slug": "String!",
"symbol": "String!",
"type": "ListItem!",
"priceMappingID": "String",
"tradingviewPair": "String",
"logoUrl": "String",
"notification": "String",
"description": "String",
"credits": "String",
"inflationFormula": "String",
"links": "JSON",
"relatedAssets": "JSON",
"pageMeta": "JSON",
"stakingLaunchDate": "Date",
"mainnetLaunchDate": "Date",
"activeSince": "Date",
"isActive": "Boolean",
"isLaunched": "Boolean",
"underMaintenance": "Boolean",
"hideValidatorAddresses": "Boolean",
"excludeFromRanking": "Boolean",
"stakingContractAudited": "Boolean"
}
}
Sample query
This query will return base data of Ethereum
:
{
assets(where: { symbols: ["ETH"] }, limit: 1) {
id
name
slug
description
symbol
}
}
Alternatively, it's possible to query with search
parameter like this:
{
assets(where: { search: "ethereum" }, limit: 10) {
id
name
slug
description
symbol
}
}