@tristeroresearch/mach-sdk
Version:
A TypeScript SDK for integrating with Mach's API.
12 lines • 749 B
TypeScript
import { type Hex } from 'viem';
import { type GasData } from '../@types/gasData';
import { type Quote } from '../@types/quote';
/**
* A helper function to ensure a token is approved for transfer by checking allowance and sending an approval transaction if necessary.
* @param quote - The quote to approve the token for
* @param key - The private key of the account to sign the transaction
* @returns The hash of the approval transaction
* @description This helper function ensures a token is approved for transfer by checking allowance and sending an approval transaction if necessary.
*/
export declare const approveToken: (quote: Quote, privateKey?: Hex, gasData?: GasData) => Promise<Hex>;
//# sourceMappingURL=approveToken.helper.d.ts.map