tokens
curl --request GET \
--url https://api.jup.ag/lend/v1/earn/tokens \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jup.ag/lend/v1/earn/tokens"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jup.ag/lend/v1/earn/tokens', 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.jup.ag/lend/v1/earn/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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://api.jup.ag/lend/v1/earn/tokens"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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://api.jup.ag/lend/v1/earn/tokens")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jup.ag/lend/v1/earn/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "So11111111111111111111111111111111111111112",
"address": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "SOL",
"decimals": 9,
"assetAddress": "So11111111111111111111111111111111111111112",
"asset": {
"address": "So11111111111111111111111111111111111111112",
"chain_id": 0,
"name": "Wrapped SOL",
"symbol": "SOL",
"decimals": 9,
"logo_url": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png",
"price": 171.34,
"coingecko_id": "solana"
},
"totalAssets": "1500000000000",
"totalSupply": "1450000000000",
"convertToShares": "0.966667",
"convertToAssets": "1.034483",
"rewardsRate": "0.035",
"supplyRate": "0.025",
"totalRate": "0.06"
}
]Earn
Tokens
Request for the tokens available to be deposited and their information
GET
/
earn
/
tokens
tokens
curl --request GET \
--url https://api.jup.ag/lend/v1/earn/tokens \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jup.ag/lend/v1/earn/tokens"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jup.ag/lend/v1/earn/tokens', 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.jup.ag/lend/v1/earn/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-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://api.jup.ag/lend/v1/earn/tokens"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-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://api.jup.ag/lend/v1/earn/tokens")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jup.ag/lend/v1/earn/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "So11111111111111111111111111111111111111112",
"address": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "SOL",
"decimals": 9,
"assetAddress": "So11111111111111111111111111111111111111112",
"asset": {
"address": "So11111111111111111111111111111111111111112",
"chain_id": 0,
"name": "Wrapped SOL",
"symbol": "SOL",
"decimals": 9,
"logo_url": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png",
"price": 171.34,
"coingecko_id": "solana"
},
"totalAssets": "1500000000000",
"totalSupply": "1450000000000",
"convertToShares": "0.966667",
"convertToAssets": "1.034483",
"rewardsRate": "0.035",
"supplyRate": "0.025",
"totalRate": "0.06"
}
]Authorizations
Get API key via https://developers.jup.ag/portal
Response
200 - application/json
Successful response
- Lending ID, starts from
1
- Lending token address like
9BEcn9aPEmhSPbPQeFGjidRiEKki46fVQDyPpSQXPA2D
- Lending token name like Jupiter Lend USDC
- Lending token symbol like jlUSDC
- Lending token underlying asset address like
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Show child attributes
Show child attributes
- Total available underlying mint from jlTokens (with accured interest)
- Total supply of jlTokens for this mint
- Value of one 1 underlying token to jlToken, like 1 USDC = X jlUSDC
- Used for conversion
- Value of one 1 jlToken token to underlying mint, like 1 jlUSDC = X USDC
- Used for conversion
- Rewards rate , in 1e4 decimals
- Supply rate, in 1e4 decimals
- Total sum of rewards + supply rate
Show child attributes
Show child attributes
Was this page helpful?
⌘I
