Get peaks of a MMR
curl --request GET \
--url https://rs-indexer.api.herodotus.cloud/accumulators/peaksimport requests
url = "https://rs-indexer.api.herodotus.cloud/accumulators/peaks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://rs-indexer.api.herodotus.cloud/accumulators/peaks', 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://rs-indexer.api.herodotus.cloud/accumulators/peaks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rs-indexer.api.herodotus.cloud/accumulators/peaks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rs-indexer.api.herodotus.cloud/accumulators/peaks")
.asString();require 'uri'
require 'net/http'
url = URI("https://rs-indexer.api.herodotus.cloud/accumulators/peaks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"contract_address": "<string>",
"onchain_accumulator_id": "<string>",
"peaks": [
"<string>"
]
}{
"message": "<string>"
}accumulators
Get peaks of a MMR
Get peaks of a MMR
GET
/
accumulators
/
peaks
Get peaks of a MMR
curl --request GET \
--url https://rs-indexer.api.herodotus.cloud/accumulators/peaksimport requests
url = "https://rs-indexer.api.herodotus.cloud/accumulators/peaks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://rs-indexer.api.herodotus.cloud/accumulators/peaks', 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://rs-indexer.api.herodotus.cloud/accumulators/peaks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rs-indexer.api.herodotus.cloud/accumulators/peaks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rs-indexer.api.herodotus.cloud/accumulators/peaks")
.asString();require 'uri'
require 'net/http'
url = URI("https://rs-indexer.api.herodotus.cloud/accumulators/peaks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"contract_address": "<string>",
"onchain_accumulator_id": "<string>",
"peaks": [
"<string>"
]
}{
"message": "<string>"
}Query Parameters
Available options:
1, 11155111, 137, 280, MADARA_PRAGMA, STARKNET, SN_SEPOLIA, 300, 11155420, 421614, 4801, 84532, UNKNOWN Available options:
1, 11155111, 137, 280, MADARA_PRAGMA, STARKNET, SN_SEPOLIA, 300, 11155420, 421614, 4801, 84532, UNKNOWN Available options:
keccak, poseidon, pedersen Available options:
AGGREGATOR, ACCUMULATOR, REMAPPER Was this page helpful?

