UseActiveContractsResult
Defined in: packages/react/src/hooks/useActiveContracts.ts:59
Properties
Section titled “Properties”data:
ActiveContract[]
Defined in: packages/react/src/hooks/useActiveContracts.ts:61
List of active contracts
error:
Error|null
Defined in: packages/react/src/hooks/useActiveContracts.ts:73
Error if any
isError
Section titled “isError”isError:
boolean
Defined in: packages/react/src/hooks/useActiveContracts.ts:71
Whether there was an error
isFetching
Section titled “isFetching”isFetching:
boolean
Defined in: packages/react/src/hooks/useActiveContracts.ts:69
Whether the query is fetching (includes background refetches)
isLoading
Section titled “isLoading”isLoading:
boolean
Defined in: packages/react/src/hooks/useActiveContracts.ts:67
Whether the query is loading
offset
Section titled “offset”offset:
string|undefined
Defined in: packages/react/src/hooks/useActiveContracts.ts:65
Current ledger offset
rawData
Section titled “rawData”rawData:
ActiveContractsResponse|undefined
Defined in: packages/react/src/hooks/useActiveContracts.ts:63
Raw response from ledger API
refetch()
Section titled “refetch()”refetch: () =>
void
Defined in: packages/react/src/hooks/useActiveContracts.ts:75
Manually refetch the contracts
Returns
Section titled “Returns”void