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://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":"euclid177vjwkg6hqwgccjsvth02cacmwj7d568qs4wxgzg8vt4n70sg9msr6yckv"}}'

Open in Playground

Arguments

NameTypeDescription
vlpString!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.