Skip to main content
GET
/
earn
/
earnings
earnings
curl --request GET \
  --url https://api.jup.ag/lend/v1/earn/earnings \
  --header 'x-api-key: <api-key>'
[
  {
    "address": "So11111111111111111111111111111111111111112",
    "ownerAddress": "BQ72nSv9f3PRyRKCBnHLVrerrv37CYTHm5h3s9VSGQDV",
    "totalDeposits": "1000000000",
    "totalWithdraws": "0",
    "totalBalance": "1034483000",
    "totalAssets": "1034483000",
    "earnings": "34483000"
  }
]

Authorizations

x-api-key
string
header
required

Get API key via https://portal.jup.ag

Query Parameters

user
string
required

User wallet address

positions
string
required

User token positions (comma-separated)

Response

200 - application/json

Successful response

address
string
required
ownerAddress
string
required
totalDeposits
string
required
totalWithdraws
string
required
totalBalance
string
required
totalAssets
string
required
earnings
string
required