Skip to content

UseActiveContractsResult

Defined in: packages/react/src/hooks/useActiveContracts.ts:59

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: boolean

Defined in: packages/react/src/hooks/useActiveContracts.ts:71

Whether there was an error


isFetching: boolean

Defined in: packages/react/src/hooks/useActiveContracts.ts:69

Whether the query is fetching (includes background refetches)


isLoading: boolean

Defined in: packages/react/src/hooks/useActiveContracts.ts:67

Whether the query is loading


offset: string | undefined

Defined in: packages/react/src/hooks/useActiveContracts.ts:65

Current ledger offset


rawData: ActiveContractsResponse | undefined

Defined in: packages/react/src/hooks/useActiveContracts.ts:63

Raw response from ledger API


refetch: () => void

Defined in: packages/react/src/hooks/useActiveContracts.ts:75

Manually refetch the contracts

void