VLP
Queries the VLP contract address for the specified token pair.
query Vlp($pair: PairInput) {
router {
vlp(pair: $pair) {
vlp
token_1
token_2
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Vlp($pair: PairInput) {\n router {\n vlp(pair: $pair) {\n vlp\n token_1\n token_2\n }\n }\n}","variables":{"pair":{"token_1":"nibi","token_2":"fundenom"}}}'
Arguments
- pair (PairInput): The two tokens included in the token pair.
Return Fields
Field | Type | Description |
---|---|---|
vlp_address | String | The VLP contract address. |
token_1 | String | The name of the first token in the pool. |
token_2 | String | The name of the second token in the pool |