Vault Data API
Quick test (no auth needed)
curl -s https://api.plx.fi/v1/health{"status":"ok","network":"solana-mainnet","ts":1735698123}Minimal TypeScript client (fetch)
const BASE = "https://api.plx.fi/v1";
const headers = (key?: string) => ({
"Content-Type": "application/json",
...(key ? { Authorization: `Bearer ${key}` } : {}),
});
export async function api(path: string, key?: string, init?: RequestInit) {
const res = await fetch(`${BASE}${path}`, {headers: headers(key), ...init});
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
return res.json();
}curl
TypeScript
Last updated
