> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GET /v0/updates/:update_id

> **Deprecated**, use /v2/updates/{update_id} instead.

**Deprecated**, use /v2/updates/\{update\_id} instead.

OpenAPI

[Updated 0.6.0](#history-updated-0-6-0)

[Deprecated 0.5.10](#history-deprecated-0-5-10)

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --request GET \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/updates/{update_id}'
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/updates/{update_id}"
response = requests.request("GET", url)

print(response.text)
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/updates/{update_id}', {
  method: 'GET',
});

console.log(await response.text());
```

```php PHP theme={"theme":{"light":"github-light","dark":"github-dark"}}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/updates/{update_id}',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
]);

$response = curl_exec($curl);
echo $response;
```

```go Go theme={"theme":{"light":"github-light","dark":"github-dark"}}
package main

import (
  "fmt"
  "io"
  "net/http"
)

func main() {
  req, _ := http.NewRequest("GET", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/updates/{update_id}", nil)
  response, _ := http.DefaultClient.Do(req)
  defer response.Body.Close()
  body, _ := io.ReadAll(response.Body)
  fmt.Println(string(body))
}
```

```java Java theme={"theme":{"light":"github-light","dark":"github-dark"}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/updates/{update_id}"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
var response = HttpClient.newHttpClient().send(
    request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
require 'net/http'
require 'uri'

uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/updates/{update_id}')
request = Net::HTTP::Get.new(uri)
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "update_id": "<string>",
  "migration_id": 123,
  "workflow_id": "<string>",
  "record_time": "<string>",
  "synchronizer_id": "<string>",
  "effective_at": "<string>",
  "offset": "<string>",
  "root_event_ids": [
    "<string>"
  ],
  "events_by_id": {},
  "external_transaction_hash": "<string>"
}
```

```json 400 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

```json 404 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

```json 500 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

## Path parameters

**update\_id** `string` *required*

## Query parameters

**lossless** `boolean`

Whether contract payload should be encoded into json using a lossless, but much harder to process, encoding. This is mostly used for backend calls, and is not recommended for external users. Optional and defaults to false.

## Responses

### 200

ok

application/json

**value** `UpdateHistoryItem` *required*

An individual item in the update history. May be a transaction or a contract reassignment.

**child attributes**

**UpdateHistoryTransaction** `UpdateHistoryTransaction`

**child attributes**

**update\_id** `string` *required*

The id of the update.

**migration\_id** `integer (int64)` *required*

The migration id of the synchronizer.

**workflow\_id** `string` *required*

This transaction's Daml workflow ID; a workflow ID can be associated with multiple transactions. If empty, no workflow ID was set.

**record\_time** `string` *required*

The time at which the transaction was sequenced, with microsecond resolution, using ISO-8601 representation.

**synchronizer\_id** `string` *required*

The id of the synchronizer through which this transaction was sequenced.

**effective\_at** `string` *required*

Ledger effective time, using ISO-8601 representation. This is the time returned by `getTime` for all Daml executed as part of this transaction, both by the submitting participant and all confirming participants.

**offset** `string` *required*

The absolute offset. Note that this field may not be the same across nodes, and therefore should not be compared between SVs. However, within a single SV's scan, it is monotonically, lexicographically increasing.

**root\_event\_ids** `string[]` *required*

Roots of the transaction tree. These are guaranteed to occur as keys of the `events_by_id` object.

**events\_by\_id** `object` *required*

Changes to the ledger that were caused by this transaction, keyed by ID. Values are nodes of the transaction tree. Within a transaction, IDs may be referenced by `root_event_ids` or `child_event_ids` in `ExercisedEvent` herein.

**external\_transaction\_hash** `string`

For an externally signed transaction, contains the external transaction hash signed by the external party. Can be used to correlate an external submission with a committed transaction. This field is conditionally omitted from JSON when null (see OmitNullString).

**UpdateHistoryReassignment** `UpdateHistoryReassignment`

A contract reassignment between synchronizer. May be an assignment or unassignment.

**child attributes**

**update\_id** `string` *required*

The id of the update.

**offset** `string` *required*

The absolute offset. Note that this field may not be the same across nodes, and therefore should not be compared between SVs.

**record\_time** `string` *required*

The time at which the transaction was sequenced.

**event** `oneOf` *required*

The reassignment event. May be an assignment or unassignment.

**child attributes**

**UpdateHistoryAssignment** `UpdateHistoryAssignment`

**child attributes**

**submitter** `string` *required*

The party ID who submitted this reassignment

**source\_synchronizer** `string` *required*

The id of the synchronizer from which the contract was reassigned

**target\_synchronizer** `string` *required*

The id of the synchronizer to which the contract was reassigned

**migration\_id** `integer (int64)` *required*

The migration id of the target synchronizer

**unassign\_id** `string` *required*

The id of the corresponding unassign event; this assignment will usually, but not always, occur after the so-identified unassignment event.

**created\_event** `CreatedEvent` *required*

The corresponding contract create event

**child attributes**

**event\_type** `string` *required*

**event\_id** `string` *required*

The ID of this particular event. Equal to the key of this element of the containing `events_by_id` if this is part of a `TreeEvent`.

**contract\_id** `string` *required*

The ID of the created contract.

**template\_id** `string` *required*

The template of the created contract.

**package\_name** `string` *required*

The package name of the created contract.

**create\_arguments** `object` *required*

The arguments that have been used to create the contract, in the form of JSON representation of a Daml record.

**created\_at** `string (date-time)` *required*

Ledger effective time of the transaction that created the contract.

**signatories** `string[]` *required*

Signatories to the contract, in the form of party IDs.

**observers** `string[]` *required*

Observers to the contract, in the form of party IDs.

**reassignment\_counter** `integer (int64)` *required*

Each corresponding assigned and unassigned event has the same reassignment\_counter. This strictly increases with each unassign command for the same contract. Creation of the contract corresponds to reassignment\_counter 0.

**UpdateHistoryUnassignment** `UpdateHistoryUnassignment`

**child attributes**

**submitter** `string` *required*

The party who submitted this reassignment

**source\_synchronizer** `string` *required*

The id of the synchronizer from which the contract was reassigned

**migration\_id** `integer (int64)` *required*

The migration id of the synchronizer from which the contract was reassigned

**target\_synchronizer** `string` *required*

The id of the synchronizer to which the contract was reassigned

**unassign\_id** `string` *required*

The id of the unassign event, to later be correlated to an assign event

**reassignment\_counter** `integer (int64)` *required*

Each corresponding assigned and unassigned event has the same reassignment\_counter. This strictly increases with each unassign command for the same contract. Creation of the contract corresponds to reassignment\_counter 0.

**contract\_id** `string` *required*

The id of the unassigned contract

### 400

bad request

application/json

**error** `string` *required*

### 404

not found

application/json

**error** `string` *required*

### 500

internal server error

application/json

**error** `string` *required*

## History

Updated
`0.6.0`

The GET /v0/updates/\{update\_id} operation changed in this snapshot.

Updated
`0.5.17`

The GET /v0/updates/\{update\_id} operation changed in this snapshot.

Deprecated
`0.5.10`
