SDKCore
rtClient.stats
SDK methods for per-product and per-collection counters, and the cache readout.
Small counter reads. For money use rtClient.payments, which reads
the ledger; for protocol-wide activity use
rtClient.analytics.
rtClient.stats.getProductStats(productId)
Counters for one smart product. Returns ApiResponse<ProductStats>.
const { data } = await rtClient.stats.getProductStats(productId);rtClient.stats.getCollectionAnalytics(collectionId)
The same shape for a collection.
rtClient.stats.getCacheStats()
The API's cache readout. Operator surface - it describes how the API is serving rather than anything about your app, and there is no reason for a product UI to render it.