Skip to main content
POST

Returns the update history in ascending order, paged, from ledger begin or optionally starting after a record time. Unlike /v0/updates, this endpoint returns responses that are consistent across different scan instances. Event ids returned by this endpoint are not comparable to event ids returned by /v0/updates. Updates are ordered lexicographically by (migration id, record time). For a given migration id, each update has a unique record time.

Body

application/json
object
OpenAPI type: UpdateHistoryRequestAfter.The transactions returned will either have a higher migration id or the same migration id and a record_time greater than the migration id and record time specified.
number
required
OpenAPI type: integer (int32).The maximum number of transactions returned for this request.
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
UpdateHistoryItem[]
required

400

bad request
application/json
string
required

500

internal server error
application/json
string
required

History

Updated0.10.3

The POST /v1/updates operation changed in this snapshot.

Updated0.10.0

The POST /v1/updates operation changed in this snapshot.

Updated0.6.0

The POST /v1/updates operation changed in this snapshot.

Updated0.5.17

The POST /v1/updates operation changed in this snapshot.

Deprecated0.5.10