Skip to main content

Scan API

POST /v0/holdings/state

POST/v0/holdings/state

Removed in 0.9.0. Historical definition from 0.8.4.

Deprecated. Please use /v1/holdings/state instead. Returns the active amulet contracts for a given migration id and record time, in creation date ascending order, paged.

Protocol Details

Operation IDgetHoldingsStateAt
Published0.8.4

Inputs

Body

application/json
migration_idinteger (int64)required
The migration id for which to return the ACS.
record_timestring (date-time)required
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.
record_time_matchstring
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.
afterinteger (int64)
Pagination token for the next page of results.
page_sizeinteger (int32)required
The maximum number of created events returned for this request.
owner_party_idsstring[]required
Filters by contracts in which these party_ids are the owners of the amulets.

Outputs

200

application/json
record_timestring (date-time)required
The same record_time as in the request.
migration_idinteger (int64)required
The same migration_id as in the request.
created_eventsCreatedEvent[]required
Up to page_size contracts in the ACS. create_arguments are always encoded as compact_json.
next_page_tokeninteger (int64)
When requesting the next page of results, pass this as after to the AcsRequest or HoldingsStateRequest. Will be absent when there are no more pages.

400

application/json
errorstringrequired

404

application/json
errorstringrequired

500

application/json
errorstringrequired

History

Removed in0.9.0

Last available in 0.8.4. Retained for historical reference.

Updated0.6.0

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