VLP
Queries the VLP contract address for the specified token pair.
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://api.euclidprotocol.com/graphql' \
--data '{"query":"query Factory($chainUid: String!, $pair: PairInput) {\n factory(chain_uid: $chainUid) {\n vlp(pair: $pair) {\n vlp_address\n }\n }\n}","variables":{"chainUid":"nibiru","pair":{"token_1":"pepe","token_2":"usdt"}}}'
Arguments
- chainUid (String!): The unique Id of the chain.
- pair (PairInput): The two tokens included in the token pair.
Return Fields
Field | Type | Description |
---|---|---|
vlp_address | String | The VLP contract address. |