Skip to main content
POST

Returns the event history in ascending order, paged, from ledger begin or optionally starting after a record time. An event bears some combination of a transaction, a contract reassignment, and a verdict. Events are ordered lexicographically by (migration id, record time). For a given migration id, each event has a unique record time.

Body

application/json
object
OpenAPI type: UpdateHistoryRequestAfter.The events 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 events returned for this request.Minimum: 1; Maximum: 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 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. Optional and defaults to “compact_json”.Allowed values: compact_json, protobuf_json.

Responses

200

ok
application/json
EventHistoryItem[]
required

400

bad request
application/json
string
required

500

internal server error
application/json
string
required

History

Updated0.6.10

The POST /v0/events operation changed in this snapshot.

Updated0.6.0

The POST /v0/events operation changed in this snapshot.

Updated0.5.17

The POST /v0/events operation changed in this snapshot.

Updated0.5.15

The POST /v0/events operation changed in this snapshot.

Added0.5.10