UNPKG

@tristeroresearch/mach-sdk

Version:

A TypeScript SDK for integrating with Mach's API.

15 lines 724 B
/** * @fileoverview This file contains the helper function to get a quote from the API for a given asset pair and amount. */ import { type Hex } from 'viem'; import { type Asset } from '../@types/asset'; /** * A helper function to retrieve a quote for a given asset pair and amount from an API, using a private key to build the wallet client. * @param srcAsset - The source asset * @param dstAsset - The destination asset * @param srcAmount - The source amount * @param privateKey - The private key * @returns The quote */ export declare const getQuote: (srcAsset: Asset | Hex, dstAsset: Asset | Hex, srcAmount: string, privateKey?: Hex) => Promise<import("..").Quote>; //# sourceMappingURL=getQuote.helper.d.ts.map