React props and children for this element.
React Hook for a lookup by contractId against the /v1/fetch
endpoint of the JSON API.
The contract template type of the query.
The contract key type of the query.
The template id type.
The template of the contract to fetch.
The contractId to fetch.
The fetched contract.
React Hook for a lookup by key against the /v1/fetch
endpoint of the JSON API.
The contract template type of the query.
The contract key type of the query.
The template id type.
The template of the contracts to fetch.
A function returning the contract key of the contracts to fetch.
Dependencies of this hook (for which the fetch is reexecuted on change).
The fetched contract.
React Hook that returns the Ledger instance to interact with the connected Daml ledger.
React hook to get the party currently connected to the ledger.
React Hook for a query
against the ledger.
The contract template type of the query.
The contract key type of the query.
The template id type.
The contract template to filter for.
A function returning a query. If the query is omitted, all visible contracts of the given template are returned.
The dependencies of the query (which trigger a reload when changed).
The result of the query.
React Hook to reload all active queries.
React Hook to query the ledger. Same as useStreamQuery, but query by contract key instead.
The contract template type of the query.
The contract key type of the query.
The template id type.
The template of the contracts to match.
The matching (unique) contract, or null.
React Hook to query the ledger. Same as useStreamQueries, but query by contract keys instead.
The contract template type of the query.
The contract key type of the query.
The template id type.
The template of the contracts to match.
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, the returned result is updated as the ledger state changes.
The contract template type of the query.
The contract key type of the query.
The template id type.
The template of the contracts to match.
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.
The dependencies of the query (for which a change triggers an update of the result).
A 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.
The contract template type of the query.
The contract key type of the query.
The template id type.
The template of the contracts to match.
A function returning a query. If the query is omitted, all visible contracts of the given template are returned.
The dependencies of the query (for which a change triggers an update of the result).
A callback that will be called if the underlying WebSocket connection fails in an unrecoverable way.
The matching contracts.
Generated using TypeDoc
Within a
DamlLedger
one can use the hooks provided here.