React props and children for this element.
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.
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)
The matching contracts.
Generated using TypeDoc
Within a
DamlLedger
one can use the hooks provided here.