UNPKG

hypesdk

Version:

A powerful SDK for interacting with the Hype blockchain, featuring advanced routing and token swap capabilities

10 lines (9 loc) 373 B
import { RouteResponse } from "../types"; /** * Get the optimal route for a token swap * @param tokenA Input token address * @param tokenB Output token address * @param amountIn Input amount (human readable) * @returns Route response from the API */ export declare function getRoute(tokenA: string, tokenB: string, amountIn: string | number): Promise<RouteResponse>;