The contract template type of the query.
The contract key type of the query.
The template id type.
Contracts of the given contract template and key.
Indicator for whether the fetch is executing.
The result of a fetch
against the ledger.
The contract template type of the query.
The contract key type of the query.
The template id type.
Contracts of the given contract template and key.
Indicator for whether the fetch is executing.
A LedgerContext is a React context that stores information about a Daml Ledger and hooks necessary to use it.
The result of a query
against the ledger.
Note: this is meant to be used by @daml/react.
The contract template type of the query.
The contract key type of the query.
The template id type.
Contracts matching the query.
Indicator for whether the query is executing.
Create a LedgerContext. One should use this function, instead of the default DamlLedger, where one needs to be able to nest ledger interactions, by different parties or connections, within one React application.
Used to refer to a context in case of errors.
Within a DamlLedger
one can use the hooks provided here.
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 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.
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).
A 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 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.
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).
A 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, 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.
React hook to get the user currently connected to the ledger participant.
Generated using TypeDoc
The result of a streaming
fetchByKeys
against the ledger.