Providers
This page displays the JSON representation of the Provider
object and a class diagram, providing a visual representation of its structure.
A Provider
refers to a participant in the PoS consensus mechanism who provides the network with validating nodes and resources to validate transactions and maintain the integrity of the blockchain.
Providers receive rewards for their validation work in the form of newly minted coins or transaction fees.
You can query the different properties of the Provider object, including connected Reward Options
, Metrics
, Tags
and base data like Name
and more.
The information presented on this page will give you a comprehensive understanding of the Provider
object and its properties.
- Class Diagram
- JSON
{
"Provider": {
"id": "ID!",
"rewardOptions": {
"where": "RewardOptionsWhere",
"order": "RewardOptionsOrder",
"limit": "Int",
"offset": "Int",
"items": "[RewardOption!]"
},
"metrics": {
"where": "MetricsWhere",
"order": "MetricsOrder",
"limit": "Int",
"offset": "Int",
"items": "[Metric!]"
},
"tags": "[Tag!]",
"faqs": "[ProviderFaq!]",
"type": "ListItem",
"name": "String!",
"slug": "String!",
"logoUrl": "String",
"tableFeaturePosition": "Int",
"country": "String",
"likes": "Int",
"links": "JSON",
"team": "JSON",
"isReferral": "Boolean",
"isClaimed": "Boolean",
"isVerified": "Boolean",
"isActive": "Boolean",
"isApproved": "Boolean",
"operationInitiationDate": "Date",
"registeredCompanyName": "String"
}
}
Sample query
This query will return the first 10 providers, their logo, country and the first 5 reward options for each provider.
Note, that there is no filtering. Consider using the where
argument to filter the results by a specific property of the Provider
object.
{
providers(limit: 10) {
name
logoUrl
country
rewardOptions(limit: 5) {
id
type {
key
label
}
metrics(limit: 10) {
metricKey
defaultValue
}
}
}
}
You can also use search
in providers query:
{
providers(where: {search: "rund"}, limit: 10) {
slug
metrics(limit: 10) {
metricKey
defaultValue
createdAt
}
}
}