Skip to main content
POST

Returns the active amulet contracts for a given migration id and record time, in creation date ascending order, paged.

Body

application/json
number
required
OpenAPI type: integer (int64).The migration id for which to return the ACS.
string
required
OpenAPI type: string (date-time).The timestamp at which the contract set was active. This needs to be an exact timestamp, i.e., needs to correspond to a timestamp reported by /v0/state/acs/snapshot-timestamp if record_time_match is set to exact (which is the default). If record_time_match is set to at_or_before, this can be any timestamp, and the most recent snapshot at or before the given record_time will be returned.
string
default:"exact"
How to match the record_time. “exact” requires the record_time to match exactly. “at_or_before” finds the most recent snapshot at or before the given record_time.Allowed values: exact, at_or_before.
string
Pagination token for the next page of results. This token is opaque and not meant to be edited by users.
number
required
OpenAPI type: integer (int32).The maximum number of created events returned for this request.
string[]
required
Filters by contracts in which these party_ids are the owners of the amulets.Minimum items: 1; Maximum items: 1000.
object
OpenAPI type: DamlValueEncoding.How daml values should be encoded in the response. “compact_json” is a compact, human-readable JSON encoding. It is the same encoding as the one used in the HTTP JSON API (v1) or the JavaScript codegen. “protobuf_json” is a verbose JSON encoding that is more difficult to parse, but contains type information, i.e., the values can be parsed losslessly without having access to the Daml source code. “ledger_api_json” is the JSON encoding of the JSON Ledger API (v2). It is identical to “compact_json”, with two differences: numeric values can be written in a different notation (e.g., “0.0000000000” instead of “0E-10”), and trailing fields of Daml records that are null are omitted. Daml upgrades can add optional fields at the end of a record. With “compact_json”, values created before such an upgrade can be returned with or without the new fields (as null) depending on the version of the app that serves the request. This encoding returns the same JSON regardless of the version. Optional and defaults to “compact_json”. Not all endpoints support all encodings. Requests for an encoding that an endpoint does not support are rejected.Allowed values: compact_json, protobuf_json, ledger_api_json.

Responses

200

ok
application/json
string (date-time)
required
The same record_time as in the request.
integer (int64)
required
The same migration_id as in the request.
ActiveContract[]
required
Up to page_size contracts in the ACS. create_arguments are encoded as specified by daml_value_encoding in the request.
string
When requesting the next page of results, pass this as after to the AcsRequestV2 or HoldingsStateRequestV2. Will be absent when there are no more pages. This token is opaque and not meant to be edited by users.

400

bad request
application/json
string
required

404

not found
application/json
string
required

500

internal server error
application/json
string
required

History

Updated0.10.3

The POST /v2/holdings/state operation changed in this snapshot.

Updated0.10.0

The POST /v2/holdings/state operation changed in this snapshot.

Added0.7.5