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

  • TSelectData = ReadContractResult<TAbi, TFunctionName>

Type declaration

  • Optional cacheOnBlock?: boolean

    If set to true, the cache will depend on the block number

  • Optional keepPreviousData?: boolean

    Set this to true to keep the previous data when fetching based on a new query key. Defaults to false.

Generated using TypeDoc