MCPcopy
hub / github.com/codeaashu/claude-code / isX402Enabled

Function isX402Enabled

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

Source from the content-addressed store, hash-verified

96
97/** Checks if x402 payments are configured and enabled */
98export function isX402Enabled(): boolean {
99 const config = getX402Config()
100 if (!config.enabled) return false
101 const key = getX402PrivateKey()
102 return !!key
103}
104
105/** Saves x402 wallet configuration */
106export function saveX402Config(updates: Partial<X402WalletConfig>): void {

Callers 6

handleStatusFunction · 0.85
callFunction · 0.85
wrapFetchWithX402Function · 0.85
addX402AxiosInterceptorFunction · 0.85
buildFetchFunction · 0.85

Calls 2

getX402ConfigFunction · 0.85
getX402PrivateKeyFunction · 0.85

Tested by

no test coverage detected