Skip to main content

Get Token Address

Queries the contract address for the LP token of the specified VLP on the specified chain.


query Factory($chainUid: String!, $vlpAddress: String!) {
factory(chain_uid: $chainUid) {
get_token_address(vlp_address: $vlpAddress) {
token_address
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Get_token_address($vlpAddress: String!, $chainUid: String!) {\n factory(chain_uid: $chainUid) {\n get_token_address(vlp_address: $vlpAddress) {\n token_address\n }\n }\n}","variables":{"chainUid":"nibiru","vlpAddress":"nibi147sw04ts68nxe80946m332rr8j79qqvas386al8d76jhamnnr99qj6xnfs"}}'

Open in Playground

Arguments

  • chainUid (String!): The unique identifier of the chain to get the address from.
  • vlp_address (String!): The address of the VLP whose LP token we are fetching.

Return Fields

FieldTypeDescription
token_addressStringThe contract address of the LP token for the specified VLP.