Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Splice APIsScan APIsScan APIView on Canton Network Docs

POST /v0/admin/sv/voteresults

POST
/
api
/
scan
/
v0
/
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/v0/admin/sv/voteresults' \
  --header 'Content-Type: application/json' \
  --data '{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}'
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/admin/sv/voteresults"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}''')
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/v0/admin/sv/voteresults', {
  method: 'POST',
  headers: {
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}),
});

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/v0/admin/sv/voteresults',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}
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/v0/admin/sv/voteresults", bytes.NewBufferString(`{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}`))
  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/v0/admin/sv/voteresults"))
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}
"""))
    .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/v0/admin/sv/voteresults')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
200
{
  "dso_rules_vote_results": [
    {}
  ],
  "next_page_token": 123
}

List vote request results

cURL
Python
JavaScript
PHP
Go
Java
Ruby
curl --request POST \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/admin/sv/voteresults' \
  --header 'Content-Type: application/json' \
  --data '{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}'
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/admin/sv/voteresults"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}''')
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/v0/admin/sv/voteresults', {
  method: 'POST',
  headers: {
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}),
});

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/v0/admin/sv/voteresults',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}
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/v0/admin/sv/voteresults", bytes.NewBufferString(`{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}`))
  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/v0/admin/sv/voteresults"))
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}
"""))
    .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/v0/admin/sv/voteresults')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
  "actionName": "<string>",
  "accepted": false,
  "requester": "<string>",
  "effectiveFrom": "<string>",
  "effectiveTo": "<string>",
  "limit": 123,
  "pageToken": 123
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
200
{
  "dso_rules_vote_results": [
    {}
  ],
  "next_page_token": 123
}

Body

application/json
actionName
string
accepted
boolean
requester
string
effectiveFrom
string
effectiveTo
string
limit
number
required
OpenAPI type: integer.
pageToken
number
OpenAPI type: integer.Cursor for pagination. When requesting the next page of results, pass the next_page_token from the previous response. Results are ordered by effective date (the accepted vote’s effectiveAt, or the result’s completedAt otherwise), descending.

Responses

200

ok
application/json
dso_rules_vote_results
object[]
required
next_page_token
integer
Cursor for the next page of results. Pass this as pageToken in the request. If absent or null, there are no more pages.

History

Updated0.6.10

The POST /v0/admin/sv/voteresults operation changed in this snapshot.

Updated0.6.4

The POST /v0/admin/sv/voteresults operation changed in this snapshot.

Updated0.6.1

The POST /v0/admin/sv/voteresults operation changed in this snapshot.

Updated0.6.0

The POST /v0/admin/sv/voteresults operation changed in this snapshot.