The template of the contracts to match.
Optional
queryFactory: () => Query<T>[]A function returning an array of queries. If no queryFactory is given, or if the given factory returns an empty array, all visible contracts of the given template are returned. Otherwise, returns a union of all the contracts that match at least one of the given queries.
Optional
queryDeps: readonly unknown[]The dependencies of the query (for which a change triggers an update of the result).
Optional
closeHandler: (e: StreamCloseEvent) => voidA callback that will be called if the underlying WebSocket connection fails in an unrecoverable way.
The matching contracts.
React Hook to query the ledger, the returned result is updated as the ledger state changes.