UseContractStreamOptions
Defined in: packages/react/src/hooks/useContractStream.ts:29
Properties
Section titled “Properties”enabled?
Section titled “enabled?”
optionalenabled:boolean
Defined in: packages/react/src/hooks/useContractStream.ts:35
Whether to enable the stream (default: true when connected)
newDuration?
Section titled “newDuration?”
optionalnewDuration:number
Defined in: packages/react/src/hooks/useContractStream.ts:37
Duration to keep isNew flag (ms, default: 2000)
onChange()?
Section titled “onChange()?”
optionalonChange: (contracts) =>void
Defined in: packages/react/src/hooks/useContractStream.ts:41
Callback when contracts change
Parameters
Section titled “Parameters”contracts
Section titled “contracts”Returns
Section titled “Returns”void
pollingInterval?
Section titled “pollingInterval?”
optionalpollingInterval:number
Defined in: packages/react/src/hooks/useContractStream.ts:33
Polling interval in milliseconds (default: 2000)
removeDuration?
Section titled “removeDuration?”
optionalremoveDuration:number
Defined in: packages/react/src/hooks/useContractStream.ts:39
Duration to keep isRemoving before actually removing (ms, default: 500)
templateFilter?
Section titled “templateFilter?”
optionaltemplateFilter:CantonTemplateFilter
Defined in: packages/react/src/hooks/useContractStream.ts:31
Template filter for contracts to watch