Skip to main content

Type Alias: ReadContractParameters<abi, functionName, args>

type ReadContractParameters<abi, functionName, args>: UnionEvaluate<Pick<CallArgs, "to">> & ContractFunctionParameters<abi, "pure" | "view", functionName, args, false>;

Type Parameters

Type ParameterDefault type

abi extends Abi | readonly unknown[]

Abi

functionName extends ContractFunctionName<abi, "pure" | "view">

ContractFunctionName<abi, "pure" | "view">

args extends ContractFunctionArgs<abi, "pure" | "view", functionName>

ContractFunctionArgs<abi, "pure" | "view", functionName>

Defined

@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:416