Skip to main content

Route

Imported types#

Token#

type Token {
chainId: ChainId!
address: String!
currency: Currency!
}

Query schemas#

createRoute#

Creates a route.

createRoute(
pairs: [Pair!]!
input: Token!
output: Token
): Route!

routePath#

Returns the full path from input token to output token.

routePath(
pairs: [Pair!]!
input: Token!
): [Token!]!

routeMidPrice#

Helper function for use in routeMidPrice and trade query functions.

routeMidPrice(
route: Route!
): String!