Skip to main content

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"}}}'

Open in Playground

Arguments

  • pair (PairInput): The two tokens included in the token pair.

Return Fields

FieldTypeDescription
vlp_addressStringThe VLP contract address.
token_1StringThe name of the first token in the pool.
token_2StringThe name of the second token in the pool