All Protocols
curl --request GET \
--url https://api.enso.build/api/v1/protocolsimport requests
url = "https://api.enso.build/api/v1/protocols"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.enso.build/api/v1/protocols', 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.enso.build/api/v1/protocols",
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.enso.build/api/v1/protocols"
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.enso.build/api/v1/protocols")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enso.build/api/v1/protocols")
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[
{
"project": "uniswap",
"slug": "uniswap-v2",
"name": "Uniswap V2",
"description": "<string>",
"url": "https://app.uniswap.org/swap",
"logosUri": "https://icons.llama.fi/uniswap-v2.png",
"chains": [
{
"id": 1,
"name": "mainnet"
}
]
}
]Integration
All Protocols
Returns all available protocols with supported chains
GET
/
api
/
v1
/
protocols
All Protocols
curl --request GET \
--url https://api.enso.build/api/v1/protocolsimport requests
url = "https://api.enso.build/api/v1/protocols"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.enso.build/api/v1/protocols', 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.enso.build/api/v1/protocols",
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.enso.build/api/v1/protocols"
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.enso.build/api/v1/protocols")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enso.build/api/v1/protocols")
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[
{
"project": "uniswap",
"slug": "uniswap-v2",
"name": "Uniswap V2",
"description": "<string>",
"url": "https://app.uniswap.org/swap",
"logosUri": "https://icons.llama.fi/uniswap-v2.png",
"chains": [
{
"id": 1,
"name": "mainnet"
}
]
}
]Query Parameters
Response
200 - application/json
Example:
"uniswap"
Example:
"uniswap-v2"
Example:
"Uniswap V2"
Example:
"https://app.uniswap.org/swap"
Example:
"https://icons.llama.fi/uniswap-v2.png"
Show child attributes
Show child attributes
Example:
[{ "id": 1, "name": "mainnet" }]
Was this page helpful?
⌘I
