()
| 96 | |
| 97 | /** Checks if x402 payments are configured and enabled */ |
| 98 | export 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 */ |
| 106 | export function saveX402Config(updates: Partial<X402WalletConfig>): void { |
no test coverage detected