Get DeFi protocol integrations
curl --request GET \
--url https://points.mellow.finance/v1/defi/protocolsimport requests
url = "https://points.mellow.finance/v1/defi/protocols"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://points.mellow.finance/v1/defi/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://points.mellow.finance/v1/defi/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://points.mellow.finance/v1/defi/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://points.mellow.finance/v1/defi/protocols")
.asString();require 'uri'
require 'net/http'
url = URI("https://points.mellow.finance/v1/defi/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[
{
"chain_id": 48900,
"vault_address": "0x5fD13359Ba15A84B76f7F87568309040176167cd",
"defi_protocol_address": "0x7d8311839eB44Dd5194abd2dd3998722455A24E0_0x9eFdE41A87fa4dD47BAa584954e8Abd5b8bdBfE7",
"user_mellow_points": "6223.551000000001",
"user_symbiotic_points": "6223.549319787699",
"user_referal_points": "0.0",
"user_vault_balance": "5035533496859123083549",
"name": "inwstETHs amphrETH",
"protocol": "Zircuit",
"pool_id": "pool-zircuit-l2-staking-inwsteths-amphreth",
"url": "https://app.zircuit.com/liquidity-hub",
"boost": "2"
}
]API Reference
Get DeFi protocol integrations
Retrieves information about all DeFi protocol integrations and their points distribution across different chains.
GET
/
v1
/
defi
/
protocols
Get DeFi protocol integrations
curl --request GET \
--url https://points.mellow.finance/v1/defi/protocolsimport requests
url = "https://points.mellow.finance/v1/defi/protocols"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://points.mellow.finance/v1/defi/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://points.mellow.finance/v1/defi/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://points.mellow.finance/v1/defi/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://points.mellow.finance/v1/defi/protocols")
.asString();require 'uri'
require 'net/http'
url = URI("https://points.mellow.finance/v1/defi/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[
{
"chain_id": 48900,
"vault_address": "0x5fD13359Ba15A84B76f7F87568309040176167cd",
"defi_protocol_address": "0x7d8311839eB44Dd5194abd2dd3998722455A24E0_0x9eFdE41A87fa4dD47BAa584954e8Abd5b8bdBfE7",
"user_mellow_points": "6223.551000000001",
"user_symbiotic_points": "6223.549319787699",
"user_referal_points": "0.0",
"user_vault_balance": "5035533496859123083549",
"name": "inwstETHs amphrETH",
"protocol": "Zircuit",
"pool_id": "pool-zircuit-l2-staking-inwsteths-amphreth",
"url": "https://app.zircuit.com/liquidity-hub",
"boost": "2"
}
]Response
200 - application/json
Successful response containing DeFi protocol integrations
Example:
[
{
"chain_id": 48900,
"vault_address": "0x5fD13359Ba15A84B76f7F87568309040176167cd",
"defi_protocol_address": "0x7d8311839eB44Dd5194abd2dd3998722455A24E0_0x9eFdE41A87fa4dD47BAa584954e8Abd5b8bdBfE7",
"user_mellow_points": "6223.551000000001",
"user_symbiotic_points": "6223.549319787699",
"user_referal_points": "0.0",
"user_vault_balance": "5035533496859123083549",
"name": "inwstETHs amphrETH",
"protocol": "Zircuit",
"pool_id": "pool-zircuit-l2-staking-inwsteths-amphreth",
"url": "https://app.zircuit.com/liquidity-hub",
"boost": "2"
}
]