Skip to main content

My Pools

Queries information of the pools created by the specified user.

query Pool($userAddress: String!, $chainUid: String) {
pool {
my_pools(user_address: $userAddress, chain_uid: $chainUid) {
height
vlp
user {
chain_uid
address
}
pair {
token_1
token_2
}
}
}
}

Example​

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Pool($userAddress: String!, $chainUid: String) {\n  pool {\n    my_pools(user_address: $userAddress, chain_uid: $chainUid) {\n      height\n      vlp\n      user {\n        chain_uid\n        address\n      }\n      pair {\n        token_1\n        token_2\n      }\n    }\n  }\n}","variables":{"chainUid":"somnia","userAddress":"0x887e4aac216674d2c432798f851c1ea5d505b2e1"}}'

Open in Playground

ArgumentTypeDescription
userAddressString!The address to check the pools for.

Return Fields​

FieldTypeDescription
heightIntThe block height when the pool was created.
vlpStringThe contract address of the VLP of the pool.
pairPairThe pair of tokens in the pool.
userUserThe user details associated with the pool.