Skip to main content

All Pools

Queries all pool information associated with a specified factory for a specific chain UID. It includes details about each pool, including the token pairs involved and their respective VLP address.

query All_pools($chainUid: String!, $limit: Int, $offset: Int) {
factory(chain_uid: $chainUid) {
all_pools(limit: $limit, offset: $offset) {
pagination {
total_count
limit
offset
}
pools {
pair {
token_1
token_2
}
vlp
}
}
}
}

Example

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

Open in Playground

Arguments

ArgumentTypeDescription
chainUidString!The unique identifier of the chain.
limitIntOptional limit to the number of results to return.
offsetIntOptional number of pools to skip before starting to return the result set.

Return Fields

FieldTypeDescription
token_1StringThe first token in the pair.
token_2StringThe second token in the pair.
vlpStringThe contract address of the VLP for the pair.
total_countIntThe total number of token pairs (pools) available.
limitIntThe maximum number of pools returned per query request.
offsetIntThe number of pools to skip before starting to return the result set.