Skip to main content

Function: contractInteraction()

function contractInteraction<abi, fN, args>(client, parameters): Promise<ReadContractReturnType<abi, fN, args>>

Type Parameters

Type Parameter

abi extends any

fN extends ExtractAbiFunctionNames<abi extends Abi ? abi : Abi, mutability>

args extends AbiParametersToPrimitiveTypes<ExtractAbiFunction<abi extends Abi ? abi : Abi, functionName, mutability>, "inputs">

Parameters

ParameterType

client

PublicClient

parameters

any

Returns

Promise<ReadContractReturnType<abi, fN, args>>

Defined

@nilfoundation/niljs/src/contract-factory/contractInteraction.ts:13