The template of the contracts to match.
A function returning a contract key. 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.
The matching (unique) contract, or null.
React Hook to query the ledger. Same as useStreamQuery, but query by contract key instead.