Get Network Information
curl --request GET \
--url https://api.sandbox.brickken.com/get-network-info \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/get-network-info"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.brickken.com/get-network-info', 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://api.sandbox.brickken.com/get-network-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.sandbox.brickken.com/get-network-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.brickken.com/get-network-info")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/get-network-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"currencyName": "<string>",
"blockExplorerUrl": "<string>",
"factoryAddress": "<string>",
"BKNAddress": "<string>",
"USDTAddress": "<string>",
"USDCAddress": "<string>"
}Read Endpoints
Get Network Information
Description: Retrieves network information for a specified chain ID.
Headers:
x-api-key:YOUR_API_KEY
Query Parameters:
chainId(string): The blockchain’s chain ID (e.g., “aa36a7”).
GET
/
get-network-info
Get Network Information
curl --request GET \
--url https://api.sandbox.brickken.com/get-network-info \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/get-network-info"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.brickken.com/get-network-info', 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://api.sandbox.brickken.com/get-network-info",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.sandbox.brickken.com/get-network-info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.brickken.com/get-network-info")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/get-network-info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"currencyName": "<string>",
"blockExplorerUrl": "<string>",
"factoryAddress": "<string>",
"BKNAddress": "<string>",
"USDTAddress": "<string>",
"USDCAddress": "<string>"
}Reads the chain metadata and the Brickken contract addresses deployed on a network. This endpoint does not
require a token symbol, so it works before you have created any asset.
Query Parameters
chainId(required): Blockchain network ID. Decimal (11155111) and hexadecimal (0xaa36a7) forms are both accepted.
Example
curl --request GET \
--url 'https://api.sandbox.brickken.com/get-network-info?chainId=11155111' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"currencyName": "ETH",
"blockExplorerUrl": "https://sepolia.etherscan.io",
"factoryAddress": "0x1111111111111111111111111111111111111111",
"BKNAddress": "0x2222222222222222222222222222222222222222",
"USDTAddress": "0x3333333333333333333333333333333333333333",
"USDCAddress": "0x4444444444444444444444444444444444444444"
}
factoryAddress, BKNAddress, USDTAddress, and USDCAddress are null when the corresponding contract is
not configured on that network.Authorizations
Query Parameters
The blockchain's chain ID (e.g., "aa36a7").
Response
200 - application/json
Successful response
The name of the blockchain's currency.
The URL of the block explorer.
The address of the factory contract.
The address of the BKN token.
The address of the USDT token.
The address of the USDC token.