MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setX402MaxSessionSpend

Function setX402MaxSessionSpend

src/services/x402/config.ts:180–185  ·  view source on GitHub ↗
(amountUSD: number)

Source from the content-addressed store, hash-verified

178
179/** Updates max session spend limit */
180export function setX402MaxSessionSpend(amountUSD: number): void {
181 if (amountUSD <= 0) {
182 throw new Error('Max session spend must be a positive number')
183 }
184 saveX402Config({ maxSessionSpendUSD: amountUSD })
185}

Callers 1

handleSetSessionFunction · 0.85

Calls 1

saveX402ConfigFunction · 0.85

Tested by

no test coverage detected