curl --request GET \
--url https://api.kamino.finance/kvaults/vaults/account-dataconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kvaults/vaults/account-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kvaults/vaults/account-data"
response = requests.get(url)
print(response.text)false{
"slot": "<string>",
"blockTime": "<string>",
"recentSlotDurationMs": 123,
"vaults": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
],
"markets": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
],
"reserves": [
{
"market": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"reserves": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
]
}
],
"farms": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
]
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Get KVault account data
Fetch base64-encoded account data for Kamino Earn Vaults together with the lending markets, reserves and farms they allocate into, so clients can hydrate SDK objects without any getProgramAccounts calls. Omit the vaults parameter to include every vault; unknown vaults are omitted from the response.
curl --request GET \
--url https://api.kamino.finance/kvaults/vaults/account-dataconst options = {method: 'GET'};
fetch('https://api.kamino.finance/kvaults/vaults/account-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/kvaults/vaults/account-data"
response = requests.get(url)
print(response.text)false{
"slot": "<string>",
"blockTime": "<string>",
"recentSlotDurationMs": 123,
"vaults": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
],
"markets": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
],
"reserves": [
{
"market": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"reserves": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
]
}
],
"farms": [
{
"pubkey": "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd",
"data": "<string>"
}
]
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Query Parameters
KVault public keys, provided as comma-separated or repeated query parameters (max 100). Omit to include every vault.
"VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd"
Response
OK
Slot at which the response was assembled
Block time for the response slot, as Unix seconds
Recent average slot duration in milliseconds
VaultState accounts of the requested vaults
Show child attributes
Show child attributes
LendingMarket accounts of every market the requested vaults allocate into
Show child attributes
Show child attributes
Reserve accounts of every market the requested vaults allocate into, grouped by market
Show child attributes
Show child attributes
FarmState accounts of the vault farms, first-loss-capital farms, delegated farms and allocation reserve farms
Show child attributes
Show child attributes