Type alias UseContractReadConfig<TAbi, TFunctionName, TSelectData>
UseContractReadConfig<TAbi, TFunctionName, TSelectData>: PartialBy<ReadContractConfig<TAbi, TFunctionName>, "abi" | "address" | "args" | "blockNumber" | "blockTag" | "functionName"> & QueryConfigWithSelect<ReadContractResult<TAbi, TFunctionName>, Error, TSelectData> & { cacheOnBlock?: boolean; keepPreviousData?: boolean; } & ({ blockNumber?: ReadContractConfig["blockNumber"]; blockTag?: never; watch?: never; } | { blockNumber?: never; blockTag?: ReadContractConfig["blockTag"]; watch?: never; } | { blockNumber?: never; blockTag?: never; watch?: boolean; }) Type Parameters
TAbi extends Abi | readonly unknown[] = Abi
TFunctionName extends string = string
Type declaration
Optional
cacheOnBlock?: boolean
Optional
keepPreviousData?: boolean
If set to
true
, the cache will depend on the block number