List chains
curl --request GET \
--url https://windrose.market/api/chainsimport requests
url = "https://windrose.market/api/chains"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://windrose.market/api/chains', 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://windrose.market/api/chains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://windrose.market/api/chains"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://windrose.market/api/chains")
.asString();require 'uri'
require 'net/http'
url = URI("https://windrose.market/api/chains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"defaultChainId": 4663,
"chains": [
{
"id": 5042002,
"key": "arc-testnet",
"name": "Arc Testnet",
"testnet": true,
"deployed": true,
"path": "deployments/5042002.json",
"dollarSymbol": "USDC",
"nativeSymbol": "USDC",
"rpcUrl": "https://rpc.blockdaemon.testnet.arc.network",
"indexerUrl": "https://api-arc.windrose.market"
},
{
"id": 5042,
"key": "arc",
"name": "Arc",
"testnet": false,
"deployed": false,
"dollarSymbol": "USDC",
"nativeSymbol": "USDC",
"rpcUrl": "https://rpc.mainnet.arc.io",
"indexerUrl": null
},
{
"id": 46630,
"key": "robinhood-testnet",
"name": "Robinhood Testnet",
"testnet": true,
"deployed": true,
"path": "deployments/46630.json",
"dollarSymbol": "USDG",
"nativeSymbol": "ETH",
"rpcUrl": "https://rpc.testnet.chain.robinhood.com",
"indexerUrl": "https://api.windrose.market/testnet"
},
{
"id": 4663,
"key": "robinhood",
"name": "Robinhood Chain",
"testnet": false,
"deployed": true,
"path": "deployments/4663.json",
"dollarSymbol": "USDG",
"nativeSymbol": "ETH",
"rpcUrl": "https://rpc.mainnet.chain.robinhood.com",
"indexerUrl": "https://api.windrose.market"
}
]
}Web app
List chains
Every chain in the registry (packages/abis/chains.json) with whether its deployment file exists right now, the
dollar and gas token symbols, and the RPC and indexer URL the app uses for it. defaultChainId is the chain a
first visit lands on. Served by the web app with cache-control: no-store; the file check runs per request.
GET
/
api
/
chains
List chains
curl --request GET \
--url https://windrose.market/api/chainsimport requests
url = "https://windrose.market/api/chains"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://windrose.market/api/chains', 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://windrose.market/api/chains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://windrose.market/api/chains"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://windrose.market/api/chains")
.asString();require 'uri'
require 'net/http'
url = URI("https://windrose.market/api/chains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"defaultChainId": 4663,
"chains": [
{
"id": 5042002,
"key": "arc-testnet",
"name": "Arc Testnet",
"testnet": true,
"deployed": true,
"path": "deployments/5042002.json",
"dollarSymbol": "USDC",
"nativeSymbol": "USDC",
"rpcUrl": "https://rpc.blockdaemon.testnet.arc.network",
"indexerUrl": "https://api-arc.windrose.market"
},
{
"id": 5042,
"key": "arc",
"name": "Arc",
"testnet": false,
"deployed": false,
"dollarSymbol": "USDC",
"nativeSymbol": "USDC",
"rpcUrl": "https://rpc.mainnet.arc.io",
"indexerUrl": null
},
{
"id": 46630,
"key": "robinhood-testnet",
"name": "Robinhood Testnet",
"testnet": true,
"deployed": true,
"path": "deployments/46630.json",
"dollarSymbol": "USDG",
"nativeSymbol": "ETH",
"rpcUrl": "https://rpc.testnet.chain.robinhood.com",
"indexerUrl": "https://api.windrose.market/testnet"
},
{
"id": 4663,
"key": "robinhood",
"name": "Robinhood Chain",
"testnet": false,
"deployed": true,
"path": "deployments/4663.json",
"dollarSymbol": "USDG",
"nativeSymbol": "ETH",
"rpcUrl": "https://rpc.mainnet.chain.robinhood.com",
"indexerUrl": "https://api.windrose.market"
}
]
}