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
#
ParametersName | Type | Description |
---|---|---|
route | Route<Currency, Currency> | the v3 path to convert to an encoded path |
exactOutput | boolean | whether the route should be encoded in reverse, for making exact output swaps |
Returns: string
Defined in: utils/encodeRouteToPath.ts:11