Skip to main content

/v2/state/active-contracts

Publish active contracts

WebSocketUpdated 3.7
PUBLISH/v2/state/active-contracts
Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset. Once the stream of GetActiveContractsResponses completes, the client SHOULD begin streaming updates from the update service, starting at the GetActiveContractsRequest.active_at_offset specified in this request. Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end. 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.

Protocol Details

ProtocolWebSocket
Channel/v2/state/active-contracts
Actionpublish
Operation IDsendV2StateActive-contracts
Content typeapplication/json
Payloadobject

Inputs

GetActiveContractsRequest

DirectionClient -> Server
MessageGetActiveContractsRequest
activeAtOffsetstringrequired
eventFormatobjectrequired

Outputs

activeAtOffsetstringrequired
eventFormatobjectrequired

History

Updated3.7

channel description updated; publish required fields added: eventFormat

Updated3.5

channel description updated; publish description updated; publish required fields removed: eventFormat