Type Alias ReadParams<abi, functionName>

ReadParams<abi, functionName>: Partial<Omit<ReadContractParameters<abi, functionName>,
    | "address"
    | "args"
    | "functionName"
    | "abi">>

Helper type that encapsulates common readContract parameters without fields like abi, args, functionName, address that are expected to be provided the SDK. See (readContract)[https://viem.sh/docs/contract/readContract]

Type Parameters

  • abi extends Abi
  • functionName extends ContractFunctionName<abi>