curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "brokers_check",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "brokers_check",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "brokers_check",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
broker: "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/info";
$payload = json_encode([
"method" => "brokers_check",
"params" => [
"user" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker" => "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/info"
payload := map[string]interface{}{
"method": "brokers_check",
"params": map[string]interface{}{
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "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/info");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"brokers_check\",\"params\":{\"user\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"broker\":\"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/info')
payload = {
method: "brokers_check",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
broker: "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)
{
"data": [
{
"account": "0x42C183edba036906447372a7c81Eb89E0B9f1387",
"broker": "0x944Aa860FA3402bC93401c177ce255496cDC86",
"max_fee_rate": "0.01",
"updated_at": 1773841180
},
{
"account": "0x42C183edba036906447372a7c81Eb89D0Cf2175",
"broker": "0x1234567890abcdef1234567890agrf12345678",
"max_fee_rate": "0.001",
"updated_at": 1773839765
}
],
"page": 1,
"limit": 100,
"total_count": 2,
"total_pages": 1,
"has_next": false,
"has_prev": false
}{
"error": "<error message>"
}Accounts
brokers_check
Send POST request to /info with method: “brokers_check”
POST
/
info
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "brokers_check",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "brokers_check",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "brokers_check",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
broker: "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/info";
$payload = json_encode([
"method" => "brokers_check",
"params" => [
"user" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker" => "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/info"
payload := map[string]interface{}{
"method": "brokers_check",
"params": map[string]interface{}{
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "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/info");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"brokers_check\",\"params\":{\"user\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"broker\":\"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/info')
payload = {
method: "brokers_check",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
broker: "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)
{
"data": [
{
"account": "0x42C183edba036906447372a7c81Eb89E0B9f1387",
"broker": "0x944Aa860FA3402bC93401c177ce255496cDC86",
"max_fee_rate": "0.01",
"updated_at": 1773841180
},
{
"account": "0x42C183edba036906447372a7c81Eb89D0Cf2175",
"broker": "0x1234567890abcdef1234567890agrf12345678",
"max_fee_rate": "0.001",
"updated_at": 1773839765
}
],
"page": 1,
"limit": 100,
"total_count": 2,
"total_pages": 1,
"has_next": false,
"has_prev": false
}{
"error": "<error message>"
}Retrieve broker approval records for a given user. Optionally filter by a specific broker address.
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "brokers_check",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "brokers_check",
"params": {
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "brokers_check",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
broker: "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/info";
$payload = json_encode([
"method" => "brokers_check",
"params" => [
"user" => "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker" => "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/info"
payload := map[string]interface{}{
"method": "brokers_check",
"params": map[string]interface{}{
"user": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"broker": "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/info");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setDoOutput(true);
String jsonPayload = "{\"method\":\"brokers_check\",\"params\":{\"user\":\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"broker\":\"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/info')
payload = {
method: "brokers_check",
params: {
user: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
broker: "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)
Response
| Field | Type | Description |
|---|---|---|
data | Array | List of broker approval records |
data[].account | String | User wallet address |
data[].broker | String | Broker wallet address |
data[].max_fee_rate | String | Maximum fee rate the broker is approved to charge |
data[].updated_at | Number | Unix timestamp (seconds) of the last update |
page | Number | Current page number |
limit | Number | Maximum records per page |
total_count | Number | Total number of records |
total_pages | Number | Total number of pages |
has_next | Boolean | Whether a next page exists |
has_prev | Boolean | Whether a previous page exists |