Skip to content

Function: readDailySpent()

function readDailySpent(
   configDir, 
   agentId, 
   nowSeconds?): bigint;

Defined in: rine-core/dist/src/x402/spend-journal.d.ts:12

Today's spend in canonical micro-units; throws CorruptSpendJournalError on an unreadable journal.

Parameters

Parameter Type
configDir string
agentId string
nowSeconds? number

Returns

bigint