Get earn vault details
curl --request GET \
--url https://api.privy.io/v1/earn/ethereum/vaults/{vault_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'privy-app-id: <privy-app-id>'HttpResponse<String> response = Unirest.get("https://api.privy.io/v1/earn/ethereum/vaults/{vault_id}")
.header("privy-app-id", "<privy-app-id>")
.header("Authorization", "Basic <encoded-value>")
.asString();const options = {
method: 'GET',
headers: {'privy-app-id': '<privy-app-id>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.privy.io/v1/earn/ethereum/vaults/{vault_id}', 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.privy.io/v1/earn/ethereum/vaults/{vault_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"privy-app-id: <privy-app-id>"
],
]);
$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.privy.io/v1/earn/ethereum/vaults/{vault_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("privy-app-id", "<privy-app-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "cm7oxq1el000e11o8iwp7d0d0",
"name": "Aave USDC Vault",
"provider": "aave",
"vault_address": "0x1234567890abcdef1234567890abcdef12345678",
"asset": {
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "usdc",
"decimals": 6
},
"caip2": "eip155:8453",
"user_apy": 500,
"app_apy": 50,
"tvl_usd": 64000000,
"available_liquidity_usd": 64000000,
"admin_wallet_id": "fmfdj6yqly31huorjqzq38zc",
"admin_wallet_address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd",
"available_fees": "10000000"
}Earn
Get Ethereum vault details
Retrieve detailed information about an Ethereum vault, including current APY and liquidity.
GET
/
v1
/
earn
/
ethereum
/
vaults
/
{vault_id}
Get earn vault details
curl --request GET \
--url https://api.privy.io/v1/earn/ethereum/vaults/{vault_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'privy-app-id: <privy-app-id>'HttpResponse<String> response = Unirest.get("https://api.privy.io/v1/earn/ethereum/vaults/{vault_id}")
.header("privy-app-id", "<privy-app-id>")
.header("Authorization", "Basic <encoded-value>")
.asString();const options = {
method: 'GET',
headers: {'privy-app-id': '<privy-app-id>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.privy.io/v1/earn/ethereum/vaults/{vault_id}', 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.privy.io/v1/earn/ethereum/vaults/{vault_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"privy-app-id: <privy-app-id>"
],
]);
$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.privy.io/v1/earn/ethereum/vaults/{vault_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("privy-app-id", "<privy-app-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "cm7oxq1el000e11o8iwp7d0d0",
"name": "Aave USDC Vault",
"provider": "aave",
"vault_address": "0x1234567890abcdef1234567890abcdef12345678",
"asset": {
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"symbol": "usdc",
"decimals": 6
},
"caip2": "eip155:8453",
"user_apy": 500,
"app_apy": 50,
"tvl_usd": 64000000,
"available_liquidity_usd": 64000000,
"admin_wallet_id": "fmfdj6yqly31huorjqzq38zc",
"admin_wallet_address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd",
"available_fees": "10000000"
}Authorizations
Response
200 - application/json
Vault details retrieved successfully.
- AaveVaultDetails
- MorphoVaultDetails
- TempoVaultDetails
- VedaVaultDetails
Vault details for an Aave earn vault, including fee visibility.
Was this page helpful?

