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

Function removeX402PrivateKey

src/services/x402/config.ts:144–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143/** Removes the private key and disables x402 */
144export function removeX402PrivateKey(): void {
145 saveGlobalConfig((config) => {
146 const { x402PrivateKey: _, ...rest } = config as Record<string, unknown>
147 return rest as typeof config
148 })
149 saveX402Config({ enabled: false, address: undefined })
150 logForDebugging('[x402] Wallet removed')
151}
152
153/** Gets the wallet address without exposing the private key */
154export function getX402WalletAddress(): string | undefined {

Callers 1

handleRemoveFunction · 0.85

Calls 3

saveGlobalConfigFunction · 0.85
saveX402ConfigFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected