UNPKG

butterjs-sdk

Version:
16 lines (15 loc) 937 B
import { SwapRequestParam } from '../../types'; import { ButterTransactionResponse } from '../../types/responseTypes'; export declare class ButterSwap { /** * The BridgeToken method is used to bridge token from one chain to another. * see {@link BridgeRequestParam} for detail * @param token source token, aka token that user provide * @param toAddress target chain receiving address * @param swapRoute best cross-chain swap route, see {@link ButterCrossChainRoute} * @param options of bridging, check {@link SwapOptions} for more details * @return ButterTransactionResponse */ omnichainSwap({ fromAddress, fromToken, toAddress, toToken, amountIn, swapRouteStr, slippage, options, }: SwapRequestParam): Promise<ButterTransactionResponse>; gasEstimateSwap({ fromAddress, fromToken, toAddress, toToken, amountIn, swapRouteStr, slippage, options, }: SwapRequestParam): Promise<string>; }