The template of the contracts to match.
Optional
queryFactory: () => Query<T>A function returning a query. If the query is omitted, all visible contracts of the given template are returned.
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.