Canton Network docsLedger API › AsyncAPI › v2/updates
Subscribe updates
Updated 03-12-2026
SUBSCRIBE
Read the ledger’s filtered update stream for the specified contents and filters.
This endpoint accepts /v2/updatesfilters_by_contract_id in EventFormat.
It returns the event types in accordance with the stream contents selected. Also the selection criteria
for individual events depends on the transaction shape chosen.- ACS delta: a requesting party must be a stakeholder of an event for it to be included.
- ledger effects: a requesting party must be a witness of an event for it to be included.
Protocol Details
ProtocolWebSocket
Channel/v2/updates
Actionsubscribe
Operation IDonV2Updates
Content typeapplication/json
PayloadoneOf
Inputs
Outputs
DirectionServer -> Client
MessageEither_JsCantonError_JsGetUpdatesResponse
Variants
codestringrequiredcausestringrequiredcontextobjectrequirederrorCategorystringrequiredRelated Schemas
Either_JsCantonError_JsGetUpdatesResponse
Either_JsCantonError_JsGetUpdatesResponse
Variants
JsCantonError
object
codestringrequiredcausestringrequiredcontextobjectrequirederrorCategorystringrequiredJsGetUpdatesResponse
object
updateobjectVariants
update
oneOf
OffsetCheckpointobjectVariants
OffsetCheckpoint
object
OffsetCheckpointobjectrequiredReassignment
object
ReassignmentobjectrequiredTopologyTransaction
object
TopologyTransactionobjectrequiredTransaction
object
TransactionobjectrequiredHistory
Updated
3.8channel description updated
Updated
3.5channel description updated; subscribe description updated
wscat
wscat
npx wscat -c <WEBSOCKET_URL>
messageapplication/json
message
{
"code": "<string>",
"cause": "<string>",
"context": {},
"errorCategory": "<integer>"
}