UseDataSetsProps
Defined in: synapse-react/src/warm-storage/use-data-sets.ts:20
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
IncludePieces extends boolean | true |
Properties
Section titled “Properties”address?
Section titled “address?”
optionaladdress?:`0x${string}`
Defined in: synapse-react/src/warm-storage/use-data-sets.ts:21
chainId?
Section titled “chainId?”
optionalchainId?: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.
includePieces?
Section titled “includePieces?”
optionalincludePieces?: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).
Default
Section titled “Default”truequery?
Section titled “query?”
optionalquery?:Omit<UseQueryOptions<UseDataSetsResult<IncludePieces>,Error,UseDataSetsResult<IncludePieces>, readonlyunknown[]>,"queryKey"|"queryFn">
Defined in: synapse-react/src/warm-storage/use-data-sets.ts:33