Skip to main content

Queries

This page provides some sample query examples to help get you started with the Nevellus Enceladus subgraph.

You can test any of the queries, or write your own, on the Nevellus Enceladus subgraph.

Enceladus

This query gets the first 5 Enceladus pools that were deployed and returns their ID, bonus multiplier, end block for the multiplier, and the address of the user who deployed the pool.

{
enceladuses(first: 5) {
id
bonusMultiplier
bonusEndBlock
devaddr
}

History

This query returns the first 100 history instances, with the ID (address of history) and owner ID (deployer address) as well as te NVLP balances and age for each.

{
histories(first: 100) {
id
owner {
id
}
nvlpBalance
nvlpAge
}
}

Pool

This query gets the first 100 pool instances and returns the ID, allocation point, and users of the pool along with their IDs (user addresses) for each pool.

{
pools(first: 100) {
id
allocPoint
users {
id
}
}

Pool History

This query returns the pool histories ordered by their NVLP balance and returns the history ID (address), the pool's ID and the address of the token pair in the pool, and the block at which the history was created.

{
poolHistories(orderBy: nvlpBalance) {
id
pool {
id
pair
}
block
}
}