Interface TypedContractMethod<A, R, S>

interface TypedContractMethod<A, R, S> {
    fragment: FunctionFragment;
    name: string;
    estimateGas(...args): Promise<bigint>;
    getFragment(...args): FunctionFragment;
    populateTransaction(...args): Promise<ContractTransaction>;
    send(...args): Promise<ContractTransactionResponse>;
    staticCall(...args): Promise<DefaultReturnType<R>>;
    staticCallResult(...args): Promise<R>;
    (...args): S extends "view"
        ? Promise<DefaultReturnType<R>>
        : Promise<ContractTransactionResponse>;
}

Type Parameters

Properties

fragment: FunctionFragment
name: string

Methods