Skip to main content

Pool

Queries the LP reserves and shares for the specified VLP on the specified chain.

query Vlp($contract: String!, $chainUid: String!) {
vlp(contract: $contract) {
pool(chain_uid: $chainUid) {
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!, $chainUid: String!) {\n vlp(contract: $contract) {\n pool(chain_uid: $chainUid) {\n reserve_1\n reserve_2\n lp_shares\n }\n }\n}","variables":{"contract":"nibi1m4ns69zvkk2zv0946mw298tlky5ckvu08rtxggtg29p784kc5sxqa9u8ly","chainUid":"nibiru"}}'

Open in Playground

Arguments

  • chainUid (String!): The unique identifier of the chain that hosts the LP tokens.
  • contract (String!): The contract address of the VLP to query.
FieldTypeDescription
reserve_1StringThe reserve amount of the first token.
reserve_2StringThe reserve amount of the second token.
lp_sharesStringThe number of liquidity provider shares.