UNPKG

agentcash

Version:

Generic MCP server for calling x402-protected APIs with automatic payment handling

21 lines (19 loc) • 464 B
import { getWallet } from "./chunk-F3KGAMIA.js"; import { fromNeverthrowError, outputAndExit } from "./chunk-7EBJ4BCH.js"; // src/cli/lib/get-wallet-or-exit.ts async function getWalletOrExit(flags) { const walletResult = await getWallet(); if (walletResult.isErr()) { outputAndExit(fromNeverthrowError(walletResult, "WALLET_ERROR"), flags); } return walletResult.value; } export { getWalletOrExit }; //# sourceMappingURL=chunk-7AT3NXJ2.js.map