Skip to main content

Token Pair From VLP

Queries the token pair for the specified VLP address.

query Vlp($vlp: String!) {
router {
token_pairs_from_vlp(vlp: $vlp) {
vlp
token_1
token_2
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token_pairs_from_vlp($vlp: String!) {\n router {\n token_pairs_from_vlp(vlp: $vlp) {\n vlp\n token_1\n token_2\n }\n }\n}","variables":{"vlp":"nibi1pys22jem6l222sxhexe7dmggtz8xkmhm49p7z3wjgrcdk3t46hgsle088m"}}'

Open in Playground

Arguments

  • vlp (String!): The contract address of the VLP to get the token pair for.

Return Fields

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