cURL
curl --request GET \
--url https://api.relay.link/swap-sourcesconst options = {method: 'GET'};
fetch('https://api.relay.link/swap-sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/swap-sources"
response = requests.get(url)
print(response.text){
"sources": [
"<string>"
]
}{
"message": "<string>"
}API Reference
Get Swap Sources
This API returns all the available swap sources that can be either included or excluded for routing.
GET
/
swap-sources
cURL
curl --request GET \
--url https://api.relay.link/swap-sourcesconst options = {method: 'GET'};
fetch('https://api.relay.link/swap-sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/swap-sources"
response = requests.get(url)
print(response.text){
"sources": [
"<string>"
]
}{
"message": "<string>"
}Was this page helpful?