Get intent swap pairs
curl --request GET \
--url https://api.bron.org/dictionary/intent-pairsimport requests
url = "https://api.bron.org/dictionary/intent-pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/dictionary/intent-pairs', 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.bron.org/dictionary/intent-pairs",
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://api.bron.org/dictionary/intent-pairs"
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://api.bron.org/dictionary/intent-pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/dictionary/intent-pairs")
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{
"pairs": [
{
"assetA": {
"assetId": "<string>",
"decimals": "<string>",
"networkId": "<string>",
"symbol": "<string>",
"contractAddress": "<string>",
"name": "<string>"
},
"assetB": {
"assetId": "<string>",
"decimals": "<string>",
"networkId": "<string>",
"symbol": "<string>",
"contractAddress": "<string>",
"name": "<string>"
},
"isBidirectional": true
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Get intent swap pairs
Returns every swap pair currently available for intents, with inline token metadata for both sides. No authentication is required for this endpoint. Intended for broadcaster integrators to discover the tradable universe. The list is advisory and cached for a few minutes — the quote endpoint is authoritative for a specific route and amount.
GET
/
dictionary
/
intent-pairs
Get intent swap pairs
curl --request GET \
--url https://api.bron.org/dictionary/intent-pairsimport requests
url = "https://api.bron.org/dictionary/intent-pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bron.org/dictionary/intent-pairs', 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.bron.org/dictionary/intent-pairs",
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://api.bron.org/dictionary/intent-pairs"
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://api.bron.org/dictionary/intent-pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bron.org/dictionary/intent-pairs")
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{
"pairs": [
{
"assetA": {
"assetId": "<string>",
"decimals": "<string>",
"networkId": "<string>",
"symbol": "<string>",
"contractAddress": "<string>",
"name": "<string>"
},
"assetB": {
"assetId": "<string>",
"decimals": "<string>",
"networkId": "<string>",
"symbol": "<string>",
"contractAddress": "<string>",
"name": "<string>"
},
"isBidirectional": true
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Response
OK
Swap pairs available for intents
Show child attributes
Show child attributes
Was this page helpful?
⌘I
