curl --request POST \
--url https://api.hotstuff.trade/explorer \
--header 'Content-Type: application/json' \
--data '{
"method": "blocks",
"params": {
"offset": 60,
"limit": 80
}
}'
import requests
url = "https://api.hotstuff.trade/explorer"
payload = {
"method": "blocks",
"params": {
"offset": 60,
"limit": 80
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/explorer";
const payload = {
method: "blocks",
params: {
offset: 60,
limit: 80,
},
};
fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
})
.then((response) => response.json())
.then((data) => console.log(data));
<?php
$url = "https://api.hotstuff.trade/explorer";
$payload = json_encode([
"method" => "blocks",
"params" => [
"offset" => 60,
"limit" => 80
]
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.hotstuff.trade/explorer"
payload := map[string]interface{}{
"method": "blocks",
"params": map[string]interface{}{
"offset": 60,
"limit": 80,
},
}
jsonData, _ := json.Marshal(payload)
resp, _ := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.*;
URL url = new URL("https://api.hotstuff.trade/explorer");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"blocks\",\"params\":{\"offset\":60,\"limit\":80}}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String response = in.readLine();
System.out.println(response);
require 'net/http'
require 'json'
uri = URI('https://api.hotstuff.trade/explorer')
payload = {
method: "blocks",
params: {
offset: 60,
limit: 80
}
}
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
request.body = payload.to_json
response = http.request(request)
puts JSON.parse(response.body)
{
"blocks": [
{
"block_height": 88771106,
"block_hash": "0x26db4aad247ff63d980ad4cb5c468ca74efeb4c1261893b0de78e1406483c0d2",
"parent_hash": "0x490546f45f47dd3508425918f35c47a72d31372d02282635c08563d79d640764",
"change_log_hash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"timestamp": 1770139983834,
"tx_count": 0,
"created_at": 1770139983
}
],
"total": 88728964,
"limit": 1,
"offset": 0
}{
"error": "<error message>"
}Explorer
Blocks
Send POST request to /explorer with method: “blocks”
POST
/
explorer
curl --request POST \
--url https://api.hotstuff.trade/explorer \
--header 'Content-Type: application/json' \
--data '{
"method": "blocks",
"params": {
"offset": 60,
"limit": 80
}
}'
import requests
url = "https://api.hotstuff.trade/explorer"
payload = {
"method": "blocks",
"params": {
"offset": 60,
"limit": 80
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/explorer";
const payload = {
method: "blocks",
params: {
offset: 60,
limit: 80,
},
};
fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
})
.then((response) => response.json())
.then((data) => console.log(data));
<?php
$url = "https://api.hotstuff.trade/explorer";
$payload = json_encode([
"method" => "blocks",
"params" => [
"offset" => 60,
"limit" => 80
]
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.hotstuff.trade/explorer"
payload := map[string]interface{}{
"method": "blocks",
"params": map[string]interface{}{
"offset": 60,
"limit": 80,
},
}
jsonData, _ := json.Marshal(payload)
resp, _ := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.*;
URL url = new URL("https://api.hotstuff.trade/explorer");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"blocks\",\"params\":{\"offset\":60,\"limit\":80}}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String response = in.readLine();
System.out.println(response);
require 'net/http'
require 'json'
uri = URI('https://api.hotstuff.trade/explorer')
payload = {
method: "blocks",
params: {
offset: 60,
limit: 80
}
}
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
request.body = payload.to_json
response = http.request(request)
puts JSON.parse(response.body)
{
"blocks": [
{
"block_height": 88771106,
"block_hash": "0x26db4aad247ff63d980ad4cb5c468ca74efeb4c1261893b0de78e1406483c0d2",
"parent_hash": "0x490546f45f47dd3508425918f35c47a72d31372d02282635c08563d79d640764",
"change_log_hash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"timestamp": 1770139983834,
"tx_count": 0,
"created_at": 1770139983
}
],
"total": 88728964,
"limit": 1,
"offset": 0
}{
"error": "<error message>"
}Retrieve a paginated list of blocks with their details including block height, hash, parent hash, and transaction counts.
curl --request POST \
--url https://api.hotstuff.trade/explorer \
--header 'Content-Type: application/json' \
--data '{
"method": "blocks",
"params": {
"offset": 60,
"limit": 80
}
}'
import requests
url = "https://api.hotstuff.trade/explorer"
payload = {
"method": "blocks",
"params": {
"offset": 60,
"limit": 80
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/explorer";
const payload = {
method: "blocks",
params: {
offset: 60,
limit: 80,
},
};
fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
})
.then((response) => response.json())
.then((data) => console.log(data));
<?php
$url = "https://api.hotstuff.trade/explorer";
$payload = json_encode([
"method" => "blocks",
"params" => [
"offset" => 60,
"limit" => 80
]
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.hotstuff.trade/explorer"
payload := map[string]interface{}{
"method": "blocks",
"params": map[string]interface{}{
"offset": 60,
"limit": 80,
},
}
jsonData, _ := json.Marshal(payload)
resp, _ := http.Post(url, "application/json", bytes.NewBuffer(jsonData))
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.*;
URL url = new URL("https://api.hotstuff.trade/explorer");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"blocks\",\"params\":{\"offset\":60,\"limit\":80}}";
OutputStream os = conn.getOutputStream();
os.write(jsonPayload.getBytes());
os.flush();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String response = in.readLine();
System.out.println(response);
require 'net/http'
require 'json'
uri = URI('https://api.hotstuff.trade/explorer')
payload = {
method: "blocks",
params: {
offset: 60,
limit: 80
}
}
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
request.body = payload.to_json
response = http.request(request)
puts JSON.parse(response.body)