Pool
Queries the LP reserves and shares for the specified VLP on the specified chain.
query Vlp($contract: String, $pair: PairInput, $chainUid: String!) {
  vlp(contract: $contract, pair: $pair) {
    pool(chain_uid: $chainUid) {
      reserve_1
      reserve_2
      lp_shares
    }
  }
}
Example
curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://testnet.api.euclidprotocol.com/graphql' \
    --data '{"query":"query Pool($chainUid: String!, $contract: String!) {\n  vlp(contract: $contract) {\n    pool(chain_uid: $chainUid) {\n      reserve_1\n      reserve_2\n      lp_shares\n    }\n  }\n}","variables":{"contract":"euclid1k463qf8vmdde9ynn42pahr0lgj09evc48q76gy93kg5wl8c2zthqhkcqae","chainUid":"stargaze"}}'
Arguments
| Argument | Type | Description | 
|---|---|---|
| chainUid | String! | The unique identifier of the chain that hosts the LP tokens. | 
| contract | String | The contract address of the VLP. Required if pairis not provided. | 
| pair | PairInput | The token pair belonging to the VLP. Required if contractis not provided. | 
| Field | Type | Description | 
|---|---|---|
| reserve_1 | String | The reserve amount of the first token. | 
| reserve_2 | String | The reserve amount of the second token. | 
| lp_shares | String | The number of liquidity provider shares. |