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

Function saveX402Config

src/services/x402/config.ts:106–114  ·  view source on GitHub ↗
(updates: Partial<X402WalletConfig>)

Source from the content-addressed store, hash-verified

104
105/** Saves x402 wallet configuration */
106export function saveX402Config(updates: Partial<X402WalletConfig>): void {
107 const current = getX402Config()
108 const merged = { ...current, ...updates }
109 saveGlobalConfig((config) => ({
110 ...config,
111 x402: merged,
112 }))
113 logForDebugging('[x402] Config updated')
114}
115
116/**
117 * Saves a private key and derives + stores the wallet address.

Callers 7

handleSetupFunction · 0.85
callFunction · 0.85
saveX402PrivateKeyFunction · 0.85
removeX402PrivateKeyFunction · 0.85
setX402NetworkFunction · 0.85
setX402MaxPaymentFunction · 0.85
setX402MaxSessionSpendFunction · 0.85

Calls 3

getX402ConfigFunction · 0.85
saveGlobalConfigFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected