curl --request POST \
--url https://api.hotstuff.trade/explorer \
--header 'Content-Type: application/json' \
--data '{
"method": "transaction",
"params": {
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/explorer"
payload = {
"method": "transaction",
"params": {
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/explorer";
const payload = {
method: "transaction",
params: {
tx_hash: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
};
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" => "transaction",
"params" => [
"tx_hash" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
]
]);
$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": "transaction",
"params": map[string]string{
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
}
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\":\"transaction\",\"params\":{\"tx_hash\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"}}";
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: "transaction",
params: {
tx_hash: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
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)
{
"tx_hash": "0x4cb07520655fd427da1574a0ac819b8d60e214b3e3a21fcbd07eee2f90b33029",
"account": "0x8f10718aDe446Eb99B57953854E1454D4a75A9de",
"block_height": 162778,
"block_hash": "0x330ed752d267705a6a30f90b03dded51f7a6013fb61a9dbdae2d128ed8e0eb5d",
"tx_type": 1301,
"success": true,
"timestamp": 1764952788519,
"created_at": 1764952788
}{
"error": "<error message>"
}Explorer
Transaction
Send POST request to /explorer with method: “transaction”
POST
/
explorer
curl --request POST \
--url https://api.hotstuff.trade/explorer \
--header 'Content-Type: application/json' \
--data '{
"method": "transaction",
"params": {
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/explorer"
payload = {
"method": "transaction",
"params": {
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/explorer";
const payload = {
method: "transaction",
params: {
tx_hash: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
};
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" => "transaction",
"params" => [
"tx_hash" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
]
]);
$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": "transaction",
"params": map[string]string{
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
}
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\":\"transaction\",\"params\":{\"tx_hash\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"}}";
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: "transaction",
params: {
tx_hash: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
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)
{
"tx_hash": "0x4cb07520655fd427da1574a0ac819b8d60e214b3e3a21fcbd07eee2f90b33029",
"account": "0x8f10718aDe446Eb99B57953854E1454D4a75A9de",
"block_height": 162778,
"block_hash": "0x330ed752d267705a6a30f90b03dded51f7a6013fb61a9dbdae2d128ed8e0eb5d",
"tx_type": 1301,
"success": true,
"timestamp": 1764952788519,
"created_at": 1764952788
}{
"error": "<error message>"
}Retrieve detailed information about a specific transaction by its hash, including block information, transaction type, and success status.
curl --request POST \
--url https://api.hotstuff.trade/explorer \
--header 'Content-Type: application/json' \
--data '{
"method": "transaction",
"params": {
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/explorer"
payload = {
"method": "transaction",
"params": {
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/explorer";
const payload = {
method: "transaction",
params: {
tx_hash: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
};
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" => "transaction",
"params" => [
"tx_hash" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
]
]);
$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": "transaction",
"params": map[string]string{
"tx_hash": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
},
}
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\":\"transaction\",\"params\":{\"tx_hash\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\"}}";
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: "transaction",
params: {
tx_hash: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
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)