Skip to content
CCPEDIAby Unity Nodes
Canton Network docsSplice APIs › Scan APIs › Scan API

POST /v1/admin/sv/voteresults

Updated 26-11-2026

POST
/
api
/
scan
/
v1
/
admin
/
sv
/
voteresults
Try it
cURL
Python
JavaScript
PHP
Go
Java
Ruby
curl --request POST \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults' \
  --header 'Content-Type: application/json' \
  --data '{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}'
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}''')
response = requests.request(
    "POST", url, headers=headers, json=payload
)

print(response.text)
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults', {
  method: 'POST',
  headers: {
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}),
});

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/v1/admin/sv/voteresults',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}
JSON,
    CURLOPT_HTTPHEADER => [
        "Content-Type: application/json"
    ],
]);

$response = curl_exec($curl);
echo $response;
package main

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

func main() {
  req, _ := http.NewRequest("POST", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults", bytes.NewBufferString(`{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}`))
  req.Header.Set("Content-Type", "application/json")
  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/v1/admin/sv/voteresults"))
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}
"""))
    .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/v1/admin/sv/voteresults')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
200
400
500
503
{
  "vote_results": [
    {
      "record_time": "2026-01-01T00:00:00Z",
      "synchronizer_id": "<string>",
      "update_id": "<string>",
      "event_number": 123,
      "dso_rules_contract_id": "<string>",
      "vote_result": {},
      "dso_rules": {}
    }
  ],
  "next_page_token": "<string>"
}
{
  "error": "<string>"
}
{
  "error": "<string>"
}
{
  "error": "<string>"
}

EXPERIMENTAL: This endpoint is experimental and subject to change, do not rely on it yet. It is meant to replace /v0/admin/sv/voteresults, which will be deprecated once this endpoint is validated. Lists the results of closed vote requests, i.e., of exercised DsoRules_CloseVoteRequest choices, that match the request filters.

cURL
Python
JavaScript
PHP
Go
Java
Ruby
curl --request POST \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults' \
  --header 'Content-Type: application/json' \
  --data '{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}'
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}''')
response = requests.request(
    "POST", url, headers=headers, json=payload
)

print(response.text)
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults', {
  method: 'POST',
  headers: {
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}),
});

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/v1/admin/sv/voteresults',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}
JSON,
    CURLOPT_HTTPHEADER => [
        "Content-Type: application/json"
    ],
]);

$response = curl_exec($curl);
echo $response;
package main

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

func main() {
  req, _ := http.NewRequest("POST", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults", bytes.NewBufferString(`{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}`))
  req.Header.Set("Content-Type", "application/json")
  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/v1/admin/sv/voteresults"))
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}
"""))
    .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/v1/admin/sv/voteresults')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
  "filters": {
    "action_name": "<string>",
    "accepted": false,
    "requester": "<string>",
    "effective_from": "2026-01-01T00:00:00Z",
    "effective_to": "2026-01-01T00:00:00Z"
  },
  "page_size": 123,
  "page_token": "<string>"
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
200
400
500
503
{
  "vote_results": [
    {
      "record_time": "2026-01-01T00:00:00Z",
      "synchronizer_id": "<string>",
      "update_id": "<string>",
      "event_number": 123,
      "dso_rules_contract_id": "<string>",
      "vote_result": {},
      "dso_rules": {}
    }
  ],
  "next_page_token": "<string>"
}
{
  "error": "<string>"
}
{
  "error": "<string>"
}
{
  "error": "<string>"
}

Body

application/json
filters
object
OpenAPI type: VoteResultsFiltersV1.EXPERIMENTAL: subject to change. Filters for vote results. A vote result is returned if it matches all filters that are set.

Show child attributes

action_name
string
Only return vote results whose action name contains this string, e.g., SRARC_AddSv.
accepted
boolean
Only return vote results that were accepted (true), or that were rejected or expired (false).
requester
string
Only return vote results whose requester name contains this string.
effective_from
string
OpenAPI type: string (date-time).Only return vote results whose effectiveAt is at or after this time. Vote results without an effectiveAt (rejected or expired ones) never match.
effective_to
string
OpenAPI type: string (date-time).Only return vote results whose effectiveAt is at or before this time. Vote results without an effectiveAt (rejected or expired ones) never match.
page_size
number
required
OpenAPI type: integer (int32).The maximum number of vote results returned for this request.Minimum: 1; Maximum: 1000.
page_token
string
Cursor for pagination. To request the next page of results, pass the next_page_token of the previous response, together with the same filters. The cursor is opaque.

Responses

200

ok
application/json
vote_results
VoteResultV1[]
required

Show child attributes

record_time
string (date-time)
required
The record time of the transaction in which the vote request was closed.
synchronizer_id
string
required
The synchronizer of the transaction in which the vote request was closed.
update_id
string
required
The update id of the transaction in which the vote request was closed.
event_number
integer (int32)
required
The number of the DsoRules_CloseVoteRequest exercise event within the transaction. Identical across Scans: events are numbered by traversing the transaction in order.
dso_rules_contract_id
string
required
The contract id of the DsoRules on which the DsoRules_CloseVoteRequest choice was exercised, i.e., of the DsoRules at the time the vote request was closed.
vote_result
object
required
The DsoRules_CloseVoteRequestResult of the choice, in the compact Daml JSON encoding. Optional fields without a value may be encoded as null or omitted.
dso_rules
object
EXPERIMENTAL: not populated yet, and its format may change. The payload of the DsoRules with contract id dso_rules_contract_id, e.g., for mapping the SV names in the vote result to SV party ids.
next_page_token
string
Cursor for the next page of results. Pass this as page_token in the next request. Absent if this page is empty, which means that there are no more pages. A page that is not empty always has a cursor, even if it is the last one.

400

bad request
application/json
error
string
required

500

internal server error
application/json
error
string
required

503

service unavailable
application/json
error
string
required

History

Added0.10.4