Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Aggregated statistics across chains
GET /api/v0/location-records/stats
curl "https://api.astral.global/api/v0/location-records/stats"
{ "total": 1250, "by_chain": { "base-sepolia": 450, "sepolia": 320, "arbitrum": 300, "celo": 180 }, "by_time": { "last_24_hours": 50, "last_7_days": 210, "last_30_days": 480 }, "revoked": 15 }
total
by_chain
by_time
revoked
const stats = await fetch('https://api.astral.global/api/v0/location-records/stats') .then(r => r.json()); console.log(`Total records: ${stats.total}`); console.log(`New today: ${stats.by_time.last_24_hours}`);
const mostActive = Object.entries(stats.by_chain) .sort(([,a], [,b]) => b - a)[0]; console.log(`Most active chain: ${mostActive[0]} (${mostActive[1]} records)`);