Skip to main content

VLP

Queries the VLP address for a specified token pair on the specified chain.


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":"atom","token_2":"usdc"}}}'

Open in Playground

Arguments

  • chainUid (String!): The unique identifier of the chain.
  • pair (PairInput): The input for specifying the token pair by specifying token_1 and token_2.

Return Fields

FieldTypeDescription
vlp_addressStringThe address of the VLP contract that contains the specified token pair.