Skip to content

UseDataSetsProps

Defined in: synapse-react/src/warm-storage/use-data-sets.ts:20

Type ParameterDefault type
IncludePieces extends booleantrue

optional address?: `0x${string}`

Defined in: synapse-react/src/warm-storage/use-data-sets.ts:21


optional chainId?: number

Defined in: synapse-react/src/warm-storage/use-data-sets.ts:25

The chain id to read from. If not provided, the connected chain will be used.


optional includePieces?: IncludePieces

Defined in: synapse-react/src/warm-storage/use-data-sets.ts:32

Whether to load the pieces of every data set. Each data set costs at least one extra RPC call. Set it to false for list views that only need the data sets (hasActivePieces tells whether a data set has pieces).

true

optional query?: Omit<UseQueryOptions<UseDataSetsResult<IncludePieces>, Error, UseDataSetsResult<IncludePieces>, readonly unknown[]>, "queryKey" | "queryFn">

Defined in: synapse-react/src/warm-storage/use-data-sets.ts:33