Canton Network docsSplice APIs › Scan APIs › Scan API
GET /v2/updates/:update_id
Updated 20-11-2026
cURL
Python
JavaScript
PHP
Go
Java
Ruby
curl --request GET \
--url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}'
import json
import requests
url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}"
response = requests.request("GET", url)
print(response.text)
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}', {
method: 'GET',
});
console.log(await response.text());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
]);
$response = curl_exec($curl);
echo $response;
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}", nil)
response, _ := http.DefaultClient.Do(req)
defer response.Body.Close()
body, _ := io.ReadAll(response.Body)
fmt.Println(string(body))
}
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/v2/updates/{update_id}"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(
request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require 'net/http'
require 'uri'
uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/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
200
400
404
500
{
"update_id": "<string>",
"migration_id": 123,
"workflow_id": "<string>",
"record_time": "<string>",
"synchronizer_id": "<string>",
"effective_at": "<string>",
"root_event_ids": [
"<string>"
],
"events_by_id": {},
"external_transaction_hash": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
GET
/
api
/
scan
/
v2
/
updates
/
{update_id}
cURL
Python
JavaScript
PHP
Go
Java
Ruby
curl --request GET \
--url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}'
import json
import requests
url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}"
response = requests.request("GET", url)
print(response.text)
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}', {
method: 'GET',
});
console.log(await response.text());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
]);
$response = curl_exec($curl);
echo $response;
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}", nil)
response, _ := http.DefaultClient.Do(req)
defer response.Body.Close()
body, _ := io.ReadAll(response.Body)
fmt.Println(string(body))
}
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/v2/updates/{update_id}"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(
request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require 'net/http'
require 'uri'
uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/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
200
400
404
500
{
"update_id": "<string>",
"migration_id": 123,
"workflow_id": "<string>",
"record_time": "<string>",
"synchronizer_id": "<string>",
"effective_at": "<string>",
"root_event_ids": [
"<string>"
],
"events_by_id": {},
"external_transaction_hash": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
Returns the update with the given update_id. Compared to /v1/updates/{update_id}, the /v2/updates/{update_id} removes the offset field in responses, which was hardcoded to 1 in /v1/updates/{update_id} for compatibility, and is now removed.
OpenAPIUpdated 0.10.3
cURL
Python
JavaScript
PHP
Go
Java
Ruby
curl --request GET \
--url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}'
import json
import requests
url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}"
response = requests.request("GET", url)
print(response.text)
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}', {
method: 'GET',
});
console.log(await response.text());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
]);
$response = curl_exec($curl);
echo $response;
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/updates/{update_id}", nil)
response, _ := http.DefaultClient.Do(req)
defer response.Body.Close()
body, _ := io.ReadAll(response.Body)
fmt.Println(string(body))
}
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/v2/updates/{update_id}"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(
request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require 'net/http'
require 'uri'
uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v2/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
200
400
404
500
{
"update_id": "<string>",
"migration_id": 123,
"workflow_id": "<string>",
"record_time": "<string>",
"synchronizer_id": "<string>",
"effective_at": "<string>",
"root_event_ids": [
"<string>"
],
"events_by_id": {},
"external_transaction_hash": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
Path parameters
Query parameters
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
okapplication/json
An individual item in the update history. May be a transaction or a contract reassignment.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
This transaction’s Daml workflow ID; a workflow ID can be associated with multiple transactions. If empty, no workflow ID was set.
The time at which the transaction was sequenced, with microsecond resolution, using ISO-8601 representation.
The id of the synchronizer through which this transaction was sequenced.
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.Roots of the transaction tree. These are guaranteed to occur as keys of the
events_by_id object.Changes to the ledger that were caused by this transaction, keyed by ID and sorted lexicographically by ID for display consistency. 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, which are sorted in the order as they occurred in the transaction.A contract reassignment between synchronizer. May be an assignment or unassignment.
Show child attributes
Show child attributes
The absolute offset. Note that this field may not be the same across nodes, and therefore should not be compared between SVs.
The reassignment event. May be an assignment or unassignment.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The id of the corresponding unassign event; this assignment will usually, but not always, occur after the so-identified unassignment event.
The corresponding contract create event
Show child attributes
Show child attributes
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.The arguments that have been used to create the contract, in the form of JSON representation of a Daml record.
Ledger effective time of the transaction that created the contract.
Show child attributes
Show child attributes
The migration id of the synchronizer from which the contract was reassigned
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.
400
bad requestapplication/json
404
not foundapplication/json
500
internal server errorapplication/json
History
Updated
0.10.3The GET /v2/updates/{update_id} operation changed in this snapshot.
Updated
0.6.0The GET /v2/updates/{update_id} operation changed in this snapshot.
Updated
0.5.17The GET /v2/updates/{update_id} operation changed in this snapshot.