Skip to main content

IsActive Flag

Next to the limit property, the API is also working with an isActive flag. This flag is used to filter out inactive Assets, Reward Options, Providers and Validators.

isActive - supports such enum values: True, False, Any.

isActive: Any - means output results don't depend on this flag.

Defaulted to True

It is important to remember that isActive is set to True by default.
This means it is not necessary to explicitly put where: {isActive: True} in the query.

Example:

{
assets(where: {slugs: ["ethereum"], isActive: Any}, limit: 1) {
metrics(limit: 10) {
defaultValue
createdAt
id
}
}
}