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

Function getX402Config

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

Source from the content-addressed store, hash-verified

80
81/** Retrieves x402 config from global config */
82export function getX402Config(): X402WalletConfig {
83 const config = getGlobalConfig()
84 return (config as Record<string, unknown>).x402 as X402WalletConfig ?? { ...X402_DEFAULTS }
85}
86
87/** Retrieves the private key from environment or global config */
88export function getX402PrivateKey(): string | undefined {

Callers 8

handleSetupFunction · 0.85
handleStatusFunction · 0.85
handlePaymentRequiredFunction · 0.85
getFacilitatorUrlFunction · 0.85
isX402EnabledFunction · 0.85
saveX402ConfigFunction · 0.85
getX402WalletAddressFunction · 0.85

Calls 1

getGlobalConfigFunction · 0.85

Tested by

no test coverage detected