{"_id":"@ageree/sthrip","name":"@ageree/sthrip","dist-tags":{"latest":"0.5.0"},"versions":{"0.5.0":{"name":"@ageree/sthrip","version":"0.5.0","description":"Anonymous payments SDK for AI Agents — thin REST wrapper over the Sthrip API","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"keywords":["monero","privacy","payments","agents","crypto","a2a","anonymous","escrow","micropayments","sthrip"],"author":{"name":"Sthrip Team","email":"hello@sthrip.dev"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Ageree/sthrip.git","directory":"stealthpay-ts"},"homepage":"https://sthrip.dev","engines":{"node":">=18.0.0"},"devDependencies":{"@types/node":"^25.6.0","typescript":"^5.9.3"},"_id":"@ageree/sthrip@0.5.0","gitHead":"e83eb21d72d83c5ac7a6a254d3a20c28a278a0b5","bugs":{"url":"https://github.com/Ageree/sthrip/issues"},"_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-OVBdLZA04LH+L0NXchy5RJEAT/FuFpbuh7wxihDsd/ai+2zFvO/JoCG/sl9NIzU+jPWGiwgxB9LkcUFyIv7T7w==","shasum":"97cdc47053447f81b5c941e27750425047604d94","tarball":"https://registry.npmjs.org/@ageree/sthrip/-/sthrip-0.5.0.tgz","fileCount":8,"unpackedSize":46135,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC61ICWGrkVNBeNRmGMw/QTT5WcWQXkPmkrX3CLdwd5fgIgYGitYU/YnmLEVWCXF0SMequ7rgRYiXFNQcx08g87kYI="}]},"_npmUser":{"name":"ageree","email":"nikto256@gmail.com"},"directories":{},"maintainers":[{"name":"ageree","email":"nikto256@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sthrip_0.5.0_1777036945216_0.9331411936324256"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-24T13:22:25.105Z","0.5.0":"2026-04-24T13:22:25.372Z","modified":"2026-04-24T13:22:25.580Z"},"maintainers":[{"name":"ageree","email":"nikto256@gmail.com"}],"description":"Anonymous payments SDK for AI Agents — thin REST wrapper over the Sthrip API","homepage":"https://sthrip.dev","keywords":["monero","privacy","payments","agents","crypto","a2a","anonymous","escrow","micropayments","sthrip"],"repository":{"type":"git","url":"git+https://github.com/Ageree/sthrip.git","directory":"stealthpay-ts"},"author":{"name":"Sthrip Team","email":"hello@sthrip.dev"},"bugs":{"url":"https://github.com/Ageree/sthrip/issues"},"license":"MIT","readme":"# @sthrip/sdk — TypeScript SDK\n\n[![npm version](https://badge.fury.io/js/@sthrip%2Fsdk.svg)](https://badge.fury.io/js/@sthrip%2Fsdk)\n\nAnonymous payments for AI agents. Thin REST wrapper over the [Sthrip API](https://sthrip-api-production.up.railway.app/docs).\n\n## Install\n\n```bash\nnpm install @sthrip/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { Sthrip } from '@sthrip/sdk';\n\n// Auto-registers on first use (no API key needed)\nconst s = new Sthrip();\n\n// Check balance\nconst bal = await s.balance();\nconsole.log(`Available: ${bal.available} XMR`);\n\n// Get deposit address\nconst addr = await s.depositAddress();\nconsole.log(`Deposit XMR to: ${addr}`);\n\n// Pay another agent\nconst receipt = await s.pay('other-agent', 0.05, { memo: 'thanks' });\nconsole.log(`Payment ${receipt.payment_id}: ${receipt.status}`);\n\n// Withdraw to external wallet\nawait s.withdraw(0.1, '4...monero_address');\n```\n\n## Configuration\n\n```typescript\n// With explicit API key\nconst s = new Sthrip({ apiKey: 'sk_...' });\n\n// With spending policies\nconst s = new Sthrip({\n  maxPerTx: 1.0,\n  dailyLimit: 10.0,\n  requireEscrowAbove: 5.0,\n});\n\n// Custom API URL (self-hosted)\nconst s = new Sthrip({ apiUrl: 'https://api.sthrip.dev' });\n```\n\nOr via environment variables:\n- `STHRIP_API_KEY` — API key (auto-register if unset)\n- `STHRIP_API_URL` — API base URL\n\n## API Reference\n\n### Wallet\n| Method | Description |\n|--------|-------------|\n| `balance()` | Get XMR balance info |\n| `depositAddress()` | Get deposit address |\n| `balancesAll()` | Get all token balances |\n| `withdraw(amount, address)` | Withdraw XMR |\n\n### Payments\n| Method | Description |\n|--------|-------------|\n| `pay(agent, amount, opts?)` | Hub-routed payment (0.1% fee) |\n| `paymentHistory(opts?)` | Payment history |\n| `wouldExceed(amount)` | Check spending policy |\n\n### Escrow\n| Method | Description |\n|--------|-------------|\n| `escrowCreate(opts)` | Create escrow deal |\n| `escrowAccept(id)` | Accept as seller |\n| `escrowDeliver(id)` | Mark delivered |\n| `escrowRelease(id, amount)` | Release funds |\n| `escrowCancel(id)` | Cancel before acceptance |\n| `escrowGet(id)` | Get escrow details |\n| `escrowList(opts?)` | List escrows |\n\n### Agents\n| Method | Description |\n|--------|-------------|\n| `me()` | Current agent profile |\n| `updateProfile(opts)` | Update profile |\n| `findAgents(opts?)` | Discover agents |\n\n### Advanced\n| Method | Description |\n|--------|-------------|\n| `channelOpen(opts)` | Open payment channel |\n| `subscribe(opts)` | Recurring payments |\n| `swapRates()` | Get swap rates |\n| `swap(opts)` | Execute swap |\n| `convert(from, to, amount)` | Convert currencies |\n| `lendOffer(opts)` | Publish lending offer |\n| `borrow(opts)` | Request a loan |\n| `payWhen(opts)` | Conditional payment |\n| `paySplit(opts)` | Split payment |\n| `payMulti(opts)` | Multi-party payment |\n| `matchmake(opts)` | Find matching agents |\n| `review(opts)` | Review an agent |\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-8e4dce4184cd086934cac07ffa6648bc"}