UNPKG

@tristeroresearch/mach-sdk

Version:

A TypeScript SDK for integrating with Mach's API.

17 lines 928 B
/** * @fileOverview This file contains the apiGetQuote function which interacts with the Mach Exchange API to retrieve a quote for a given asset pair and amount. * @function apiGetQuote - Sends a POST request to the Mach Exchange API with the specified parameters to obtain a quote. */ import { type Quote } from '../@types/quote'; /** * API function to get a quote from the Mach Exchange API * @param walletAddress - The address of the wallet * @param srcChain - The source chain * @param dstChain - The destination chain * @param srcAssetAddress - The source asset address * @param dstAssetAddress - The destination asset address * @param srcAmount - The source amount * @returns The quote */ export declare const apiGetQuote: (walletAddress: string, srcChain: string, dstChain: string, srcAssetAddress: string, dstAssetAddress: string, srcAmount: string) => Promise<Quote>; //# sourceMappingURL=quote.api.d.ts.map