The template of the contracts to match.
A function returning an array of contract keys. Contract keys must be in "output" format as defined in the JSON API docs, i.e., have to match the types generated by the daml-types library.
The dependencies of the fetch-by-key (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.
An array of the same length as the given array of keys, where each element is either the currently active contract that matches the corresponding key, or null if no active contract matches the key in the same position.
React Hook to query the ledger. Same as useStreamQueries, but query by contract keys instead.