/v2/state/active
cURL
cURL
Documentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Ledger API standard JWT token
Query Parameters
maximum number of elements to return, this param is ignored if is bigger than server setting
timeout to complete and send result if no new elements are received (for open ended streams)
Body
If the given offset is different than the ledger end, and there are (un)assignments in-flight at the given offset, the snapshot may fail with "FAILED_PRECONDITION/PARTICIPANT_PRUNED_DATA_ACCESSED". Note that it is ok to request acs snapshots for party migration with offsets other than ledger end, because party migration is not concerned with incomplete (un)assignments.
The offset at which the snapshot of the active contracts will be computed. Must be no greater than the current ledger end offset. Must be greater than or equal to the last pruning offset. Must be a valid absolute offset (positive integer) or ledger begin offset (zero). If zero, the empty set will be returned.
Required
Provided for backwards compatibility, it will be removed in the Canton version 3.5.0. Templates to include in the served snapshot, per party. Optional, if specified event_format must be unset, if not specified event_format must be set.
Show child attributes
Show child attributes
Provided for backwards compatibility, it will be removed in the Canton version 3.5.0. If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels for record fields. Optional, if specified event_format must be unset.
Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of TRANSACTION_SHAPE_ACS_DELTA. Optional for backwards compatibility, defaults to an EventFormat where:
- filters_by_party is the filter.filters_by_party from this request
- filters_for_any_party is the filter.filters_for_any_party from this request
- verbose is the verbose field from this request
Show child attributes
Show child attributes
Opaque representation of a continuation token defining a position in the active contracts snapshot.
The prefix of the active contracts snapshot will be omitted up to and including the element from which
the continuation token was read.
To reuse the continuation token from a GetActiveContractsPageResponse:
- subsequent request must be executed on the same participant with the same version of canton,
- subsequent request must have the same active_at_offset,
- subsequent request must have the same event_format
- and the participant must not have been pruned after the active_at_offset.
If not specified, the whole active contracts snapshot will be returned.
Optional: can be empty
Response
The workflow ID used in command submission which corresponds to the contract_entry. Only set if
the workflow_id for the command was set.
Must be a valid LedgerString (as described in value.proto).
Optional
For a contract there could be multiple contract_entry-s in the entire snapshot. These together define
the state of one contract in the snapshot.
A contract_entry is included in the result, if and only if there is at least one stakeholder party of the contract
that is hosted on the synchronizer at the time of the event and the party satisfies the
TransactionFilter in the query.
Required
- JsContractEntry
- JsContractEntry
- JsContractEntry
- JsContractEntry
Show child attributes
Show child attributes
Opaque representation of a continuation token which can be used in the request to bypass the already processed part
of the active contracts snapshot.
Only populated for the streaming GetActiveContracts rpc call.
Optional: can be empty