UNPKG

@ajna-finance/sdk

Version:

A typescript SDK that can be used to create Dapps in Ajna ecosystem.

12 lines (11 loc) 703 B
import { Contract } from 'ethers'; import { CallData, TransactionOverrides, WrappedTransaction } from '../types'; /** * Creates a wrapped transaction object that can be used to submit, verify, and estimate gas for a transaction. * @param contract The ethers.js contract instance. * @param methodName The name of the method to call on the contract. * @param args An array of arguments to pass to the method. * @param overrides An optional object with transaction overrides, such as gasPrice and gasLimit. * @returns The wrapped transaction object. */ export declare function createTransaction(contract: Contract, callData: CallData, overrides?: TransactionOverrides): Promise<WrappedTransaction>;