UNPKG

@tristeroresearch/mach-sdk

Version:

A TypeScript SDK for integrating with Mach's API.

16 lines 832 B
/** * @fileoverview This file contains the helper functions to approve a token and submit an order. */ import { GasData } from '../@types/gasData.js'; import { type Hex } from 'viem'; import { type Quote } from '../@types/quote'; /** * A helper function to submit an order * @param quote - The quote to submit * @param privateKey - The private key of the account to sign the transaction * @param gasData - The gas data to use for the transaction * @returns The transaction receipt * @description This helper function submits an order by calling approveToken, encoding order data, signing the transaction, and sending it to the blockchain. */ export declare const submitOrder: (quote: Quote, privateKey?: Hex, gasData?: GasData) => Promise<import("viem").TransactionReceipt>; //# sourceMappingURL=submitOrder.helper.d.ts.map