VLP
Queries the VLP address for a specified token pair on the specified chain.
query Factory($chainUid: String!, $pair: PairInput) {
factory(chain_uid: $chainUid) {
vlp(pair: $pair) {
vlp_address
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Factory($chainUid: String!, $pair: PairInput) {\n factory(chain_uid: $chainUid) {\n vlp(pair: $pair)\n }\n}","variables":{"chainUid":"stargaze","pair":{"token_1":"euclid","token_2":"stars"}}}'
Arguments
- chainUid (String!): The unique identifier of the chain.
- pair (PairInput): The input for specifying the token pair by specifying token_1 and token_2.
Return Fields
Field | Type | Description |
---|---|---|
vlp_address | String | The address of the VLP contract that contains the specified token pair. |