Get Vault Reward Rates
curl --request GET \
--url https://persephone.superform.xyz/v1/vaults/rewards \
--header 'SF-API-KEY: <api-key>'import requests
url = "https://persephone.superform.xyz/v1/vaults/rewards"
headers = {"SF-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'SF-API-KEY': '<api-key>'}};
fetch('https://persephone.superform.xyz/v1/vaults/rewards', 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://persephone.superform.xyz/v1/vaults/rewards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"SF-API-KEY: <api-key>"
],
]);
$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://persephone.superform.xyz/v1/vaults/rewards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("SF-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://persephone.superform.xyz/v1/vaults/rewards")
.header("SF-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://persephone.superform.xyz/v1/vaults/rewards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["SF-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rewards": [
{
"id": "<string>",
"vault_id": "<string>",
"reward_type": "<string>",
"reward_logo": "<string>",
"reward_rate": 123,
"reward_rate_type": "<string>",
"reward_asset_address": "<string>",
"reward_asset_symbol": "<string>",
"reward_asset_chain_id": "<string>",
"reward_multiplier": 123,
"token_total_supply": "<string>",
"reward_configurable_price": true,
"remarks": "<string>",
"remarks_url": "<string>",
"reward_source": "<string>",
"reward_up_base_rate": 123
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}SuperVaults
Get Vault Reward Rates
GET
/
v1
/
vaults
/
rewards
Get Vault Reward Rates
curl --request GET \
--url https://persephone.superform.xyz/v1/vaults/rewards \
--header 'SF-API-KEY: <api-key>'import requests
url = "https://persephone.superform.xyz/v1/vaults/rewards"
headers = {"SF-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'SF-API-KEY': '<api-key>'}};
fetch('https://persephone.superform.xyz/v1/vaults/rewards', 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://persephone.superform.xyz/v1/vaults/rewards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"SF-API-KEY: <api-key>"
],
]);
$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://persephone.superform.xyz/v1/vaults/rewards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("SF-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://persephone.superform.xyz/v1/vaults/rewards")
.header("SF-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://persephone.superform.xyz/v1/vaults/rewards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["SF-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rewards": [
{
"id": "<string>",
"vault_id": "<string>",
"reward_type": "<string>",
"reward_logo": "<string>",
"reward_rate": 123,
"reward_rate_type": "<string>",
"reward_asset_address": "<string>",
"reward_asset_symbol": "<string>",
"reward_asset_chain_id": "<string>",
"reward_multiplier": 123,
"token_total_supply": "<string>",
"reward_configurable_price": true,
"remarks": "<string>",
"remarks_url": "<string>",
"reward_source": "<string>",
"reward_up_base_rate": 123
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}