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"}}'
Arguments
- chainUid (String!): The unique identifier of the chain.
Return Fields
Field | Type | Description |
---|---|---|
pair | Pair | Information about the token pairs. |
vlp | String | The contract address of the VLP. |
Pair
Field | Type | Description |
---|---|---|
token_1 | String | The first token in the pair. |
token_2 | String | The second token in the pair. |