Skip to main content
Version: 3.0.0

encodeRouteToPath

@uniswap/v3-sdk / Exports / utils/encodeRouteToPath / encodeRouteToPath

encodeRouteToPath

encodeRouteToPath(route: Route<Currency, Currency>, exactOutput: boolean): string

Converts a route to a hex encoded path

Parameters#

NameTypeDescription
routeRoute<Currency, Currency>the v3 path to convert to an encoded path
exactOutputbooleanwhether the route should be encoded in reverse, for making exact output swaps

Returns: string

Defined in: utils/encodeRouteToPath.ts:11