{"_id":"@asgcard/fund","_rev":"4-f574a820c1fef31bf497020c9432f5e7","name":"@asgcard/fund","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@asgcard/fund","version":"1.0.0","keywords":["asgcard","fund","payment-link","pay-in","ai-agent","stellar","usdc","stripe","virtual-card","autonomous-agent","x402","fintech","crypto","mastercard","agent-funding","mcp","llm","ai-payment"],"author":{"name":"ASG Card","email":"aidar@asgcompute.com"},"license":"MIT","_id":"@asgcard/fund@1.0.0","maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"homepage":"https://fund.asgcard.dev","bugs":{"url":"https://github.com/ASGCompute/ASG-Pay/issues"},"bin":{"asgcard-fund":"bin/fund.js"},"dist":{"shasum":"7137fb6fee4c8e0f70f9fbb8ce6d1ba48a710455","tarball":"https://registry.npmjs.org/@asgcard/fund/-/fund-1.0.0.tgz","fileCount":4,"integrity":"sha512-BQjdfraehQ87tOl9O4S0uBkGyBa8aSqxdV95AH58FpovQYyq84UwWbPOotIl+Ewwwm4tazVWOaIaT4Pxq/WLEQ==","signatures":[{"sig":"MEQCIEIycoaMsREx+s3buEG3DfgCk3xydJQeXpA2FJN39yigAiBwEXTGQ5MYKoWfUu9DKtBXX78miE6WWRzT0EW4ThqSIA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14629},"main":"index.js","type":"module","engines":{"node":">=18.0.0"},"exports":{".":"./index.js"},"scripts":{"test":"node bin/fund.js --address GDQP2KPQGKIHIQAEFHQ3XNKFYJVXVSHRQEB37AIR6T3JZWNM7YSHWM --amount 10"},"_npmUser":{"name":"asgcard","email":"aidar@asgcompute.com"},"repository":{"url":"git+https://github.com/ASGCompute/ASG-Pay.git","type":"git"},"_npmVersion":"10.9.2","description":"Generate ASG Pay payment links for AI agent funding — CLI & programmatic API. Zero dependencies.","directories":{},"_nodeVersion":"22.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fund_1.0.0_1775177247650_0.8389977961368387","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@asgcard/fund","version":"1.0.1","keywords":["asgcard","fund","payment-link","pay-in","ai-agent","stellar","usdc","stripe","virtual-card","autonomous-agent","x402","fintech","crypto","mastercard","agent-funding","mcp","llm","ai-payment"],"author":{"name":"ASG Card","email":"aidar@asgcompute.com"},"license":"MIT","_id":"@asgcard/fund@1.0.1","maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"homepage":"https://fund.asgcard.dev","bugs":{"url":"https://github.com/ASGCompute/ASG-Pay/issues"},"bin":{"asgcard-fund":"bin/fund.js"},"dist":{"shasum":"80ddd684a01347e391fa49aaa623567c080299fe","tarball":"https://registry.npmjs.org/@asgcard/fund/-/fund-1.0.1.tgz","fileCount":4,"integrity":"sha512-GiayTq2XnKr2graxNmit4AQrSYjN7fI9usSZ6uiddVK7Nq1GIyKrfp/RS2Z0R3I1c20zEkMhwxjr5HdMJMKBxw==","signatures":[{"sig":"MEYCIQDCh0o7xsix/QsxXL9YhAWftfk/kv9uHq8CJuH3AMv8fQIhAN4BO2oYMR4sZiI955oZ0+z3udTJxut7G5YQCRAbOB7H","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14985},"main":"index.js","type":"module","engines":{"node":">=18.0.0"},"exports":{".":"./index.js"},"scripts":{"test":"node bin/fund.js --address GDQP2KPQGKIHIQAEFHQ3XNKFYJVXVSHRQEB37AIR6T3JZWNM7YSHWM --amount 10"},"_npmUser":{"name":"asgcard","email":"aidar@asgcompute.com"},"repository":{"url":"git+https://github.com/ASGCompute/ASG-Pay.git","type":"git"},"_npmVersion":"10.9.2","description":"Generate ASG Pay payment links for AI agent funding — CLI & programmatic API. Zero dependencies.","directories":{},"_nodeVersion":"22.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fund_1.0.1_1775177886479_0.6211864771044193","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@asgcard/fund","version":"1.0.2","keywords":["asgcard","fund","payment-link","pay-in","ai-agent","stellar","usdc","stripe","virtual-card","autonomous-agent","x402","fintech","crypto","mastercard","agent-funding","mcp","llm","ai-payment"],"author":{"name":"ASG Card","email":"aidar@asgcompute.com"},"license":"MIT","_id":"@asgcard/fund@1.0.2","maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"homepage":"https://fund.asgcard.dev","bugs":{"url":"https://github.com/ASGCompute/ASG-Pay/issues"},"bin":{"asgcard-fund":"bin/fund.js"},"dist":{"shasum":"a9dd17237c86d413664c06c69c02b1e90ea37c83","tarball":"https://registry.npmjs.org/@asgcard/fund/-/fund-1.0.2.tgz","fileCount":4,"integrity":"sha512-O8BoSQSfY3/lK9MSGZrQUsIcKOt0JyOxiAin+9/zE6/XTwCSLrgtxlGo8Xw/5+0obIiMStFGCb+ztSJ356LAiw==","signatures":[{"sig":"MEUCIHAwyj4Zf7gas6jH7zfyjWE50D4dtIhkmmtPCNytDAmGAiEAkGib6MqGZOhXrf3mz+2V//7wfh/6LlfH+zZ8l/ZXGM0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15415},"main":"index.js","type":"module","engines":{"node":">=18.0.0"},"exports":{".":"./index.js"},"scripts":{"test":"node bin/fund.js --address GDQP2KPQGKIHIQAEFHQ3XNKFYJVXVSHRQEB37AIR6T3JZWNM7YSHWM --amount 10"},"_npmUser":{"name":"asgcard","email":"aidar@asgcompute.com"},"repository":{"url":"git+https://github.com/ASGCompute/ASG-Pay.git","type":"git"},"_npmVersion":"10.9.2","description":"Generate ASG Pay payment links for AI agent funding — CLI & programmatic API. Zero dependencies.","directories":{},"_nodeVersion":"22.15.0","dependencies":{"asgcard":"*","@asgcard/cli":"*","@asgcard/mpp":"*","@asgcard/sdk":"*","@asgcard/x402":"*","x402-protocol":"*","ai-credit-card":"*","@asgcard/agentcard":"*","@asgcard/agent-cash":"*","@asgcard/create-app":"*","@asgcard/mcp-server":"*","@asgcard/crypto-card":"*","@asgcard/agent-wallet":"*","machine-payments-protocol":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fund_1.0.2_1775269051020_0.791123342711219","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@asgcard/fund","version":"1.0.3","description":"Generate ASG Pay payment links for AI agent funding — CLI & programmatic API. Zero dependencies.","type":"module","main":"index.js","exports":{".":"./index.js"},"bin":{"asgcard-fund":"bin/fund.js"},"scripts":{"test":"node bin/fund.js --address GDQP2KPQGKIHIQAEFHQ3XNKFYJVXVSHRQEB37AIR6T3JZWNM7YSHWM --amount 10"},"keywords":["asgcard","fund","payment-link","pay-in","ai-agent","stellar","usdc","stripe","virtual-card","autonomous-agent","x402","fintech","crypto","mastercard","agent-funding","mcp","llm","ai-payment"],"author":{"name":"ASG Card","email":"aidar@asgcompute.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ASGCompute/ASG-Pay.git"},"homepage":"https://fund.asgcard.dev","bugs":{"url":"https://github.com/ASGCompute/ASG-Pay/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=18.0.0"},"_id":"@asgcard/fund@1.0.3","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-gCHWKDmHkCLRqJ7R3bybOG21iwUqOKMCa5Wqws57wLIiQOHSbi+4Dl/+VIB56Z6YT0r8HT9exnwRYCWDb1S1TA==","shasum":"1224e01847c4606d12a9cf796395f33cd101053b","tarball":"https://registry.npmjs.org/@asgcard/fund/-/fund-1.0.3.tgz","fileCount":4,"unpackedSize":14985,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCAFSNE539t+15CPGcRAfxtp2DQtsduDR+YKqRKbu4fGgIhAO4jZm7ymtg09PQ4mkwhPhHf+ApRrHIyXfpYa3Pkoe9y"}]},"_npmUser":{"name":"asgcard","email":"aidar@asgcompute.com"},"directories":{},"maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fund_1.0.3_1775269229005_0.8139103092327873"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-03T00:47:27.589Z","modified":"2026-04-04T02:20:29.323Z","1.0.0":"2026-04-03T00:47:27.787Z","1.0.1":"2026-04-03T00:58:06.636Z","1.0.2":"2026-04-04T02:17:31.171Z","1.0.3":"2026-04-04T02:20:29.183Z"},"bugs":{"url":"https://github.com/ASGCompute/ASG-Pay/issues"},"author":{"name":"ASG Card","email":"aidar@asgcompute.com"},"license":"MIT","homepage":"https://fund.asgcard.dev","keywords":["asgcard","fund","payment-link","pay-in","ai-agent","stellar","usdc","stripe","virtual-card","autonomous-agent","x402","fintech","crypto","mastercard","agent-funding","mcp","llm","ai-payment"],"repository":{"type":"git","url":"git+https://github.com/ASGCompute/ASG-Pay.git"},"description":"Generate ASG Pay payment links for AI agent funding — CLI & programmatic API. Zero dependencies.","maintainers":[{"name":"asgcard","email":"aidar@asgcompute.com"}],"readme":"# @asgcard/fund\n\n> Generate ASG Pay payment links for AI agent funding — CLI & programmatic API\n\n[![npm](https://img.shields.io/npm/v/@asgcard/fund)](https://www.npmjs.com/package/@asgcard/fund)\n⭐ [Star us on GitHub](https://github.com/ASGCompute/ASG-Pay)\n\n## What is this?\n\nA zero-dependency CLI tool and Node.js API that generates payment links for [ASG Pay](https://fund.asgcard.dev) — the universal pay-in gateway for AI agents on Stellar.\n\nUsers who open the link can fund your agent's wallet via:\n- 💳 **Credit/Debit Card** (Stripe)\n- 🌉 **Cross-chain Bridge** (ROZO — ETH, SOL, USDC from any EVM chain)\n- ⚡ **Direct Stellar** (Freighter wallet)\n\n## Prerequisites (For AI Agents)\n\nTo receive funds, your agent needs a Stellar wallet address.\n\nDon't have one? Install the ASG Card agent skill & CLI to generate a secure wallet instantly:\n```bash\nnpx @asgcard/cli install\n```\n\n## Quick Start\n\n```bash\nnpx @asgcard/fund --address GDQP2KPQ... --amount 100\n```\n\nOutput:\n```\n  🔗 ASG Pay — Payment Link Generated\n  ─────────────────────────────────────\n  Agent:   Agent\n  Amount:  100 USDC\n  To:      GDQP2KPQ…YSHWM\n\n  https://fund.asgcard.dev/?agentName=Agent&toAddress=GDQP2KPQ...&toAmount=100&toToken=USDC\n\n  Share this link with the user to collect payment.\n  Supports: Credit Card • Bank Transfer • Crypto Bridge • Stellar Direct\n```\n\n## CLI Options\n\n```bash\nnpx @asgcard/fund \\\n  --address GDQP2KPQ...    # Stellar public key (required)\n  --amount 50               # Amount in USDC (required)\n  --agent \"Trading Bot\"     # Agent display name\n  --token USDC              # Token: USDC, USDT, XLM, SOL, ETH, BTC, DAI, EURC\n  --redirect https://...    # Redirect URL after payment\n  --json                    # Output as JSON (for scripting)\n  --api                     # Validate via server API\n  --help                    # Show help\n```\n\n## Programmatic API\n\n```js\nimport { generateFundLink } from '@asgcard/fund';\n\nconst { url, params } = await generateFundLink({\n  agentName: 'Trading Bot',\n  toAddress: 'GDQP2KPQGKIHIQAEFHQ3XNKFYJVXVSHRQEB37AIR6T3JZWNM7YSHWM',\n  toAmount: 100,\n  toToken: 'USDC',\n  redirectUrl: 'https://myapp.com/callback',\n});\n\nconsole.log(url);\n// → https://fund.asgcard.dev/?agentName=Trading+Bot&toAddress=GDQP...&toAmount=100&toToken=USDC\n```\n\n### Options\n\n| Option | Type | Required | Default | Description |\n|--------|------|----------|---------|-------------|\n| `toAddress` | string | ✅ | — | Stellar public key (`G...`, 56 chars) |\n| `toAmount` | number | ✅ | `50` | Amount in token units |\n| `agentName` | string | — | `\"Agent\"` | Display name shown to payer |\n| `toToken` | string | — | `\"USDC\"` | Token to receive |\n| `redirectUrl` | string | — | — | HTTPS redirect after payment |\n| `useApi` | boolean | — | `false` | Validate via server API |\n\n### Server-validated mode\n\n```js\nconst result = await generateFundLink({\n  toAddress: 'GDQP...',\n  toAmount: 100,\n  useApi: true, // calls fund.asgcard.dev/api/generate-link\n});\n```\n\n## MCP Integration\n\nThis package exports an MCP tool schema for AI agent frameworks:\n\n```js\nimport { mcpToolSchema } from '@asgcard/fund';\n\n// Register as an MCP tool\nserver.tool(mcpToolSchema.name, mcpToolSchema.inputSchema, async (args) => {\n  const result = await generateFundLink(args);\n  return { content: [{ type: 'text', text: result.url }] };\n});\n```\n\n## How It Works\n\n```\nYour Agent → generates URL → User opens link → Pays via card/bridge/stellar → Agent wallet funded\n```\n\nASG Pay handles all payment processing, currency conversion, and Stellar settlement automatically. Your agent just needs to generate the link and share it.\n\n## Related Packages\n\n| Package | Description |\n|---------|-------------|\n| [@asgcard/sdk](https://www.npmjs.com/package/@asgcard/sdk) | Full SDK — create cards, manage wallets |\n| [@asgcard/cli](https://www.npmjs.com/package/@asgcard/cli) | CLI toolkit — onboarding, MCP install |\n| [@asgcard/mcp-server](https://www.npmjs.com/package/@asgcard/mcp-server) | MCP server for Claude, Codex, Cursor |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}