Skip to main content

All Pools

Queries all the LP reserves and shares on all the chains for the specified VLP.

query Vlp($contract: String!) {
vlp(contract: $contract) {
all_pools {
pools {
chain_uid
pool {
reserve_1
reserve_2
lp_shares
}
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Vlp($contract: String!) {\n vlp(contract: $contract) {\n all_pools {\n pools {\n chain_uid\n pool {\n reserve_1\n reserve_2\n lp_shares\n }\n }\n }\n }\n}","variables":{"contract":"nibi1m4ns69zvkk2zv0946mw298tlky5ckvu08rtxggtg29p784kc5sxqa9u8ly"}}'

Open in Playground

Arguments

  • contract (String!): The contract address of the VLP.

Return Fields

FieldTypeDescription
chain_uidStringThe unique identifier (UID) of the chain.
poolPoolInfoDetailed information about the pool.

PoolInfo

FieldTypeDescription
reserve_1StringThe reserve amount of the first token.
reserve_2StringThe reserve amount of the second token.
lp_sharesStringThe number of liquidity provider shares.

Arguments

  • contract (String!): The contract address of the VLP to query.