()
| 80 | |
| 81 | /** Retrieves x402 config from global config */ |
| 82 | export 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 */ |
| 88 | export function getX402PrivateKey(): string | undefined { |
no test coverage detected