/v0/round-party-totals
curl --request POST \
--url https://example.com/api/scan/v0/round-party-totals \
--header 'Content-Type: application/json' \
--data '
{
"start_round": 123,
"end_round": 123
}
'import requests
url = "https://example.com/api/scan/v0/round-party-totals"
payload = {
"start_round": 123,
"end_round": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({start_round: 123, end_round: 123})
};
fetch('https://example.com/api/scan/v0/round-party-totals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://example.com/api/scan/v0/round-party-totals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start_round' => 123,
'end_round' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://example.com/api/scan/v0/round-party-totals"
payload := strings.NewReader("{\n \"start_round\": 123,\n \"end_round\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://example.com/api/scan/v0/round-party-totals")
.header("Content-Type", "application/json")
.body("{\n \"start_round\": 123,\n \"end_round\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://example.com/api/scan/v0/round-party-totals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start_round\": 123,\n \"end_round\": 123\n}"
response = http.request(request)
puts response.read_body{
"entries": [
{
"closed_round": 123,
"party": "<string>",
"app_rewards": "<string>",
"validator_rewards": "<string>",
"traffic_purchased": 123,
"traffic_purchased_cc_spent": "<string>",
"traffic_num_purchases": 123,
"cumulative_app_rewards": "<string>",
"cumulative_validator_rewards": "<string>",
"cumulative_change_to_initial_amount_as_of_round_zero": "<string>",
"cumulative_change_to_holding_fees_rate": "<string>",
"cumulative_traffic_purchased": 123,
"cumulative_traffic_purchased_cc_spent": "<string>",
"cumulative_traffic_num_purchases": 123
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}/v0/round-party-totals
deprecated
Deprecated. Retrieve per-party Amulet statistics for up to 50 closed rounds.
POST
/
v0
/
round-party-totals
/v0/round-party-totals
curl --request POST \
--url https://example.com/api/scan/v0/round-party-totals \
--header 'Content-Type: application/json' \
--data '
{
"start_round": 123,
"end_round": 123
}
'import requests
url = "https://example.com/api/scan/v0/round-party-totals"
payload = {
"start_round": 123,
"end_round": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({start_round: 123, end_round: 123})
};
fetch('https://example.com/api/scan/v0/round-party-totals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://example.com/api/scan/v0/round-party-totals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start_round' => 123,
'end_round' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://example.com/api/scan/v0/round-party-totals"
payload := strings.NewReader("{\n \"start_round\": 123,\n \"end_round\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://example.com/api/scan/v0/round-party-totals")
.header("Content-Type", "application/json")
.body("{\n \"start_round\": 123,\n \"end_round\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://example.com/api/scan/v0/round-party-totals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start_round\": 123,\n \"end_round\": 123\n}"
response = http.request(request)
puts response.read_body{
"entries": [
{
"closed_round": 123,
"party": "<string>",
"app_rewards": "<string>",
"validator_rewards": "<string>",
"traffic_purchased": 123,
"traffic_purchased_cc_spent": "<string>",
"traffic_num_purchases": 123,
"cumulative_app_rewards": "<string>",
"cumulative_validator_rewards": "<string>",
"cumulative_change_to_initial_amount_as_of_round_zero": "<string>",
"cumulative_change_to_holding_fees_rate": "<string>",
"cumulative_traffic_purchased": 123,
"cumulative_traffic_purchased_cc_spent": "<string>",
"cumulative_traffic_num_purchases": 123
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}⌘I