Skip to main content

All Pools

Queries all pool information associated with a specified factory contract which is retrieved by a chain UID. It includes details about each pool, including the token pairs involved and their respective types.

query Factory($chainUid: String!) {
factory(chain_uid: $chainUid) {
all_pools {
pools {
pair {
token_1
token_2
}
vlp
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Factory($chainUid: String!) {\n factory(chain_uid: $chainUid) {\n all_pools {\n pools {\n pair {\n token_1\n token_2\n }\n vlp\n }\n }\n }\n}","variables":{"chainUid":"nibiru"}}'

Open in Playground

Arguments

  • chainUid (String!): The unique identifier of the chain.

Return Fields

FieldTypeDescription
pairPairInformation about the token pairs.
vlpStringThe contract address of the VLP.

Pair

FieldTypeDescription
token_1StringThe first token in the pair.
token_2StringThe second token in the pair.