puter.auth.getMonthlyUsage()Get the user's current monthly resource usage in the Puter ecosystem.
When called from an app, usage and appTotals cover only that app's own usage. allowanceInfo is the user's allowance for the whole account.
puter.auth.getMonthlyUsage()
None
A Promise that resolves to a MonthlyUsage object containing the user's monthly usage information.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.auth.getMonthlyUsage().then(function (usage) {
puter.print(`<pre>${JSON.stringify(usage, null, 2)}</pre>`);
});
</script>
</body>
</html>