Construct a new Ledger
object. See LedgerOptions for the constructor arguments.
Archive a contract identified by its contract ID.
The contract template type.
The contract key type.
The contract id type.
The template of the contract to archive.
The contract id of the contract to archive.
Archive a contract identified by its contract key. Same as archive, but the contract to be archived is identified by its contract key.
The contract template type.
The contract key type.
The contract id type.
The template of the contract to be archived.
The contract key of the contract to be archived.
Create a contract for a given template.
The contract template type.
The contract key type.
The contract id type.
The template of the contract to be created.
The template arguments for the contract to be created.
Exercise a choice on a contract identified by its contract ID.
The contract template type.
The type of the contract choice.
The return type of the choice.
The choice to exercise.
The contract id of the contract to exercise.
The choice arguments.
The return value of the choice together with a list of [[event]]'s that where created as a result of exercising the choice.
Exercise a choice on a contract identified by its contract key.
Same as exercise, but the contract is identified by its contract key instead of its contract id.
The contract template type.
The type of the contract choice.
The return type of the choice.
The type of the contract key.
The choice to exercise.
The choice arguments.
The return value of the choice together with a list of [[event]]'s that where created as a result of exercising the choice.
Fetch a contract identified by its contract ID.
The contract template type.
The contract key type.
The contract id type.
The template of the contract to be fetched.
The contract id of the contract to be fetched.
Fetch a contract identified by its contract key.
Same as fetch, but the contract to be fetched is identified by its contract key instead of its contract id.
The contract template type.
The contract key type.
The contract id type.
The template of the contract to be fetched.
The contract key of the contract to be fetched.
Retrieve contracts for a given template.
When no query
argument is given, all contracts visible to the submitting party are returned.
When a query
argument is given, only those contracts matching the query are returned. See
https://docs.daml.com/json-api/search-query-language.html for a description of the query
language.
The contract template type.
The contract key type.
The contract id type.
The contract template of the contracts to be matched against.
The contract query for the contracts to be matched against.
Retrieve a consolidated stream of events for a given template and contract key.
Same as streamQuery, but instead of a query, match contracts by contract key.
The contract template type.
The contract key type.
The contract id type.
Retrieve a consolidated stream of events for a given template and query.
The accumulated state is the current set of active contracts matching the query. When no
query
argument is given, all events visible to the submitting party are returned. When a
query
argument is given, only those create events matching the query are returned. See
https://docs.daml.com/json-api/search-query-language.html for a description of the query
language.
The contract template type.
The contract key type.
The contract id type.
The contract template to match contracts against.
The query to match contracts agains.
Generated using TypeDoc
An object of type
Ledger
represents a handle to a DAML ledger.