lumina/ui/business-logic/api/ledger-stats-api.js
2025-11-29 23:13:05 +03:00

9 lines
288 B
JavaScript

import {useExplorerApi} from '@stellar-expert/ui-framework'
export function useLedgerStats() {
return useExplorerApi('ledger/ledger-stats')
}
export function use24hLedgerStats(autorefresh) {
return useExplorerApi('ledger/ledger-stats/24h', autorefresh ? {ttl: 60} : undefined)
}