UNPKG

@accret/bridge-sdk

Version:
24 lines 1.14 kB
import type { Quote } from "@across-protocol/app-sdk"; import { type Address } from "viem"; /** * @description Fetches a quote for a cross-chain transfer using the @Across Protocol. * @param params - The parameters for the quote request. * @param params.originChainId - The ID of the origin chain. * @param params.destinationChainId - The ID of the destination chain. * @param params.inputToken - The address of the input token. * @param params.outputToken - The address of the output token. * @param params.inputAmount - The amount of the input token to be quoted. * @param params.recipient - The address of the recipient on the destination chain. * @param params.inputTokenDecimals - The number of decimals for the input token (optional, defaults to 18). * @returns A promise that resolves to the quote for the specified parameters. */ export declare function getQuote(params: { originChainId: number; destinationChainId: number; inputToken: Address; outputToken: Address; inputAmount: string; recipient: Address; inputTokenDecimals?: number; }): Promise<Quote>; //# sourceMappingURL=getQuote.d.ts.map