Skip to main content

Callable

  • sendTxnWithOptions<T, K>(contract: T, methodName: K, args: Parameters<T[K]>, options: any): Promise<ContractTransaction>

  • SendTransactionMethod is a function type that takes a contract, method name, arguments, and optional TransactionOptions to send a transaction.


    Type parameters

    • T: Contract
    • K: string | number | symbol

    Parameters

    • contract: T
    • methodName: K
    • args: Parameters<T[K]>
    • options: any

    Returns Promise<ContractTransaction>