Skip to content

EncodeFunctionDataParameters

EncodeFunctionDataParameters<abi, functionName, hasFunctions, allArgs, allFunctionNames>: object & UnionEvaluate<IsNarrowable<abi, Abi> extends true ? abi["length"] extends 1 ? object : object : object> & UnionEvaluate<readonly [] extends allArgs ? object : object> & hasFunctions extends true ? unknown : never

Type declaration

abi

abi: abi

Type Parameters

abi extends Abi | readonly unknown[] = Abi

functionName extends ContractFunctionName<abi> | Hex | undefined = ContractFunctionName<abi>

hasFunctions = abi extends Abi ? Abi extends abi ? true : [ExtractAbiFunctions<abi>] extends [never] ? false : true : true

allArgs = ContractFunctionArgs<abi, AbiStateMutability, functionName extends ContractFunctionName<abi> ? functionName : ContractFunctionName<abi>>

allFunctionNames = ContractFunctionName<abi>

Defined in

node_modules/.pnpm/viem@2.21.1_bufferutil@4.0.8_typescript@5.6.2_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/utils/abi/encodeFunctionData.d.ts:12