Canton Network docsSplice APIs › Scan APIs › Scan API
POST /v1/admin/sv/voteresults/count
Updated 26-11-2026
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/count' \
--header 'Content-Type: application/json' \
--data '{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}'
import json
import requests
url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults/count"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}''')
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/count', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}),
});
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/count',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => <<<'JSON'
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
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/count", bytes.NewBufferString(`{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}`))
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/count"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
"""))
.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/count')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
http.request(request)
end
puts response.body
200
400
500
503
{
"count": 123
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
POST
/
api
/
scan
/
v1
/
admin
/
sv
/
voteresults
/
count
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/count' \
--header 'Content-Type: application/json' \
--data '{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}'
import json
import requests
url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults/count"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}''')
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/count', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}),
});
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/count',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => <<<'JSON'
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
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/count", bytes.NewBufferString(`{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}`))
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/count"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
"""))
.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/count')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
http.request(request)
end
puts response.body
200
400
500
503
{
"count": 123
}
{
"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/count, which will be deprecated once this endpoint is validated. Counts the vote results that /v1/admin/sv/voteresults lists for the same filters. Fails with 503 Service Unavailable until this Scan holds all vote results since the start of the network.
OpenAPIAdded 0.10.4
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/count' \
--header 'Content-Type: application/json' \
--data '{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}'
import json
import requests
url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v1/admin/sv/voteresults/count"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}''')
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/count', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}),
});
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/count',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => <<<'JSON'
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
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/count", bytes.NewBufferString(`{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}`))
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/count"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
"""))
.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/count')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
"action_name": "<string>",
"accepted": false,
"requester": "<string>",
"effective_from": "2026-01-01T00:00:00Z",
"effective_to": "2026-01-01T00:00:00Z"
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
http.request(request)
end
puts response.body
200
400
500
503
{
"count": 123
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
Body
application/json
Only return vote results whose action name contains this string, e.g.,
SRARC_AddSv.Only return vote results that were accepted (
true), or that were rejected or expired (false).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.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.Responses
200
okapplication/json
400
bad requestapplication/json
500
internal server errorapplication/json
503
service unavailableapplication/json
History
Added
0.10.4