curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "supported_collateral",
"params": {
"symbol": "USDC"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "supported_collateral",
"params": {
"symbol": "USDC"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "supported_collateral",
params: {
symbol: "USDC",
},
};
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" => "supported_collateral",
"params" => [
"symbol" => "USDC"
]
]);
$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": "supported_collateral",
"params": map[string]interface{}{
"symbol": "USDC",
},
}
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\":\"supported_collateral\",\"params\":{\"symbol\":\"USDC\"}}";
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: "supported_collateral",
params: {
symbol: "USDC"
}
}
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)
[
{
"id": 1,
"symbol": "USDC",
"name": "USDC",
"decimals": 6,
"default_coll_weight": 1,
"price_index": "USDC/USD",
"type": 0,
"bridge_by_chain": [
{
"bridge_chain_type": 0,
"bridge_chain_id": 11155111,
"token_address": "0xc8B651b77Cce49C5e29677Fba4dE2AA415FbBc98",
"bridge_contract_address": "0x1ce44b7cb2CCcd1B4E67FE632aC32b63B9CDDa91",
"enabled": true
}
],
"coll_risk": {
"weight_tiers": [
{
"amount": 9223372036853,
"weight": 1
},
{
"amount": 9223372036854.775,
"weight": 0
}
],
"max_margin_cap": 9223372036854.775,
"stale_price_guard_weight": 1,
"enabled": true
},
"transfer_notional_fee": 1,
"withdrawal_fee": 3,
"added_at_block": 1773677761277
}
]{
"error": "<error message>"
}Global
supported_collateral
Send POST request to /info with method: “supported_collateral”
POST
/
info
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "supported_collateral",
"params": {
"symbol": "USDC"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "supported_collateral",
"params": {
"symbol": "USDC"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "supported_collateral",
params: {
symbol: "USDC",
},
};
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" => "supported_collateral",
"params" => [
"symbol" => "USDC"
]
]);
$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": "supported_collateral",
"params": map[string]interface{}{
"symbol": "USDC",
},
}
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\":\"supported_collateral\",\"params\":{\"symbol\":\"USDC\"}}";
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: "supported_collateral",
params: {
symbol: "USDC"
}
}
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)
[
{
"id": 1,
"symbol": "USDC",
"name": "USDC",
"decimals": 6,
"default_coll_weight": 1,
"price_index": "USDC/USD",
"type": 0,
"bridge_by_chain": [
{
"bridge_chain_type": 0,
"bridge_chain_id": 11155111,
"token_address": "0xc8B651b77Cce49C5e29677Fba4dE2AA415FbBc98",
"bridge_contract_address": "0x1ce44b7cb2CCcd1B4E67FE632aC32b63B9CDDa91",
"enabled": true
}
],
"coll_risk": {
"weight_tiers": [
{
"amount": 9223372036853,
"weight": 1
},
{
"amount": 9223372036854.775,
"weight": 0
}
],
"max_margin_cap": 9223372036854.775,
"stale_price_guard_weight": 1,
"enabled": true
},
"transfer_notional_fee": 1,
"withdrawal_fee": 3,
"added_at_block": 1773677761277
}
]{
"error": "<error message>"
}Retrieve supported collateral configuration, risk parameters, and bridge details for a specific symbol or all symbols.
params.symbol is required. Pass a collateral symbol like USDC, or use all to fetch all supported collateral types.
curl --request POST \
--url https://api.hotstuff.trade/info \
--header 'Content-Type: application/json' \
--data '{
"method": "supported_collateral",
"params": {
"symbol": "USDC"
}
}'
import requests
url = "https://api.hotstuff.trade/info"
payload = {
"method": "supported_collateral",
"params": {
"symbol": "USDC"
}
}
response = requests.post(url, json=payload)
print(response.json())
const url = "https://api.hotstuff.trade/info";
const payload = {
method: "supported_collateral",
params: {
symbol: "USDC",
},
};
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" => "supported_collateral",
"params" => [
"symbol" => "USDC"
]
]);
$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": "supported_collateral",
"params": map[string]interface{}{
"symbol": "USDC",
},
}
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\":\"supported_collateral\",\"params\":{\"symbol\":\"USDC\"}}";
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: "supported_collateral",
params: {
symbol: "USDC"
}
}
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)