[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75NDGAQP7YPD81TK9WXD2MW":3,"skill-same:01M75NDGAQP7YPD81TK9WXD2MW":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M75NDGAQP7YPD81TK9WXD2MW","senddy",null,"Create and manage private stablecoin wallets using Senddy's zero-knowledge protocol on Base. Use when building payment agents, bots, server-side apps, or any system that needs private USDC transfers. Covers @senddy\u002Fnode for headless agents and @senddy\u002Fclient for browser apps.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmattt21\u002Fsenddy\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: senddy\ndescription: Create and manage private stablecoin wallets using Senddy's zero-knowledge protocol on Base. Use when building payment agents, bots, server-side apps, or any system that needs private USDC transfers. Covers @senddy\u002Fnode for headless agents and @senddy\u002Fclient for browser apps.\nmetadata: {\"openclaw\":{\"requires\":{\"env\":[\"SENDDY_API_KEY\",\"AGENT_SEED_HEX\"]},\"primaryEnv\":\"SENDDY_API_KEY\",\"emoji\":\"🛡️\",\"homepage\":\"https:\u002F\u002Fsenddy.com\"}}\n---\n\n# Senddy Private Wallet\n\nBuild private stablecoin wallets with zero-knowledge proofs on Base.\nSenddy lets agents and apps hold, transfer, and withdraw USDC privately —\nno public on-chain linkage between deposits, transfers, and withdrawals.\n\n## Quick Start (Headless Agent)\n\n**5 steps to a working private wallet:**\n\n```bash\nnpm install @senddy\u002Fnode\n```\n\n```typescript\nimport { createSenddyAgent, toUSDC } from '@senddy\u002Fnode';\nimport { randomBytes } from 'node:crypto';\n\n\u002F\u002F 1. Generate a seed (store this securely — it controls the wallet)\nconst seed = randomBytes(32);\n\n\u002F\u002F 2. Create the agent (only seed + apiKey required)\nconst agent = createSenddyAgent({\n  seed,\n  apiKey: process.env.SENDDY_API_KEY!,\n});\n\n\u002F\u002F 3. Initialize (derives keys, loads WASM prover, first sync)\nawait agent.init();\n\n\u002F\u002F 4. Get your receive address\nconsole.log('Address:', agent.getReceiveAddress()); \u002F\u002F senddy1...\n\n\u002F\u002F 5. Check balance, transfer, withdraw\nconst balance = await agent.getBalance();\nawait agent.transfer('senddy1...recipient', toUSDC('5.00'));\nawait agent.withdraw('0xPublicAddress...', toUSDC('10.00'));\n```\n\nSet `SENDDY_API_KEY` in your environment. Get one at https:\u002F\u002Fsenddy.com.\n\n## Configuration\n\n### Minimal Config (recommended)\n\nOnly `seed` and `apiKey` are required. Everything else defaults to the\ncanonical Base mainnet deployment:\n\n```typescript\ncreateSenddyAgent({\n  seed: Uint8Array,        \u002F\u002F 32-byte secret (REQUIRED)\n  apiKey: string,          \u002F\u002F 'sk_live_...' (REQUIRED)\n})\n```\n\n### Full Config (overrides)\n\n```typescript\ncreateSenddyAgent({\n  seed: Uint8Array,\n  apiKey: string,\n  apiUrl: string,          \u002F\u002F default: 'https:\u002F\u002Fsenddy.com\u002Fapi\u002Fv1'\n  chainId: number,         \u002F\u002F default: 8453 (Base)\n  rpcUrl: string,          \u002F\u002F default: 'https:\u002F\u002Fmainnet.base.org'\n  pool: '0x...',           \u002F\u002F default: canonical pool\n  usdc: '0x...',           \u002F\u002F default: canonical USDC\n  permit2: '0x...',        \u002F\u002F default: canonical Permit2\n  subgraphUrl: string,     \u002F\u002F default: canonical subgraph\n  attestorUrl: string,     \u002F\u002F override: bypass API gateway for attestor\n  relayerUrl: string,      \u002F\u002F override: bypass API gateway for relayer\n  context: string,         \u002F\u002F default: 'main' (for multi-agent from one seed)\n  debug: boolean,          \u002F\u002F default: false\n})\n```\n\n### What the API Key Gates\n\nThe `apiKey` authenticates all requests through the Senddy API gateway:\n- **Attestor** — ZK proof verification (TEE-based, off-chain)\n- **Relayer** — Gas-sponsored transaction submission (you don't pay gas)\n- **Usernames** — Resolve `senddy1...` addresses to human-readable names\n- **Merkle tree** — Proof generation helper endpoints\n\n## Operations\n\n### Balance\n\n```typescript\nconst balance = await agent.getBalance();\n\u002F\u002F { shares: bigint, estimatedUSDC: bigint, noteCount: number }\n```\n\n`estimatedUSDC` is in 6-decimal USDC units. `shares` are 18-decimal internal units.\n\n### Transfer\n\n```typescript\n\u002F\u002F Simple transfer\nconst result = await agent.transfer('senddy1...', toUSDC('25.00'));\n\u002F\u002F { txHash, shares, nullifierCount, circuit: 'spend' | 'spend9' }\n\n\u002F\u002F With memo (max 31 ASCII chars)\nawait agent.transfer('senddy1...', toUSDC('5.00'), { memo: 'Payment' });\n\n\u002F\u002F Anonymous (hide sender identity)\nawait agent.transfer('senddy1...', toUSDC('5.00'), { anonymous: true });\n```\n\nAuto-escalation: tries `spend` circuit (3 inputs), escalates to `spend9`\n(9 inputs), and auto-consolidates if neither suffices.\n\n### Withdraw\n\nWithdraw to a public Ethereum address (USDC leaves the privacy pool):\n\n```typescript\nconst result = await agent.withdraw('0x...', toUSDC('50.00'));\n\u002F\u002F { txHash, shares, to, circuit }\n```\n\n### Sync\n\nState is synced automatically on `init()`. For long-running agents:\n\n```typescript\n\u002F\u002F Manual sync\nconst result = await agent.sync();\n\u002F\u002F { newNotes, newSpent, unspentCount, durationMs }\n```\n\n### Consolidation\n\nWhen notes fragment (many small UTXOs), consolidate them:\n\n```typescript\nconst result = await agent.consolidate({ noteThreshold: 16 });\n\u002F\u002F { txHash, notesConsolidated, totalShares, needsMore }\n```\n\n### Receive Address\n\n```typescript\nconst address = agent.getReceiveAddress(); \u002F\u002F 'senddy1qw508d6q...'\n```\n\nShare this address to receive private transfers. It's derived from\nyour viewing public key and is deterministic for a given seed + context.\n\n### Transaction History\n\n```typescript\nconst txs = await agent.getTransactions({ limit: 50 });\n\u002F\u002F Array\u003C{ id, type, shares, estimatedUSDC, counterparty, memo, timestamp, status }>\n```\n\n### Events\n\n```typescript\nagent.on('balanceChange', (balance) => { \u002F* ... *\u002F });\nagent.on('sync', (result) => { \u002F* ... *\u002F });\nagent.on('noteStrategy', (event) => { \u002F* escalation\u002Fconsolidation info *\u002F });\nagent.on('error', (err) => { \u002F* ... *\u002F });\n```\n\n## Multiple Agents from One Seed\n\nUse the `context` parameter to derive different wallets from the same seed:\n\n```typescript\nconst treasury = createSenddyAgent({ seed, apiKey, context: 'treasury' });\nconst payroll  = createSenddyAgent({ seed, apiKey, context: 'payroll' });\nconst tips     = createSenddyAgent({ seed, apiKey, context: 'tips' });\n```\n\nEach context produces different keys and a different receive address.\n\n## Amounts\n\nAlways use `toUSDC()` to convert human-readable amounts:\n\n```typescript\nimport { toUSDC } from '@senddy\u002Fnode';\n\ntoUSDC('1.00')     \u002F\u002F 1_000_000n\ntoUSDC('100')      \u002F\u002F 100_000_000n\ntoUSDC('0.01')     \u002F\u002F 10_000n\ntoUSDC(50)         \u002F\u002F 50_000_000n\n```\n\nRaw amounts are in USDC's 6-decimal format (`bigint`).\n\n## Address Validation\n\n```typescript\nimport { isValidSenddyAddress } from '@senddy\u002Fnode';\n\nisValidSenddyAddress('senddy1qw508d6q...');  \u002F\u002F true\nisValidSenddyAddress('0x...');                \u002F\u002F false\n```\n\n## Contract Addresses\n\n```typescript\nimport { SHARED_CONTRACTS, V3_CONTRACTS } from '@senddy\u002Fnode';\n\nSHARED_CONTRACTS.USDC     \u002F\u002F '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'\nSHARED_CONTRACTS.Permit2  \u002F\u002F '0x000000000022D473030F116dDEE9F6B43aC78BA3'\nV3_CONTRACTS.Pool         \u002F\u002F '0x0b4e0C18e4005363A10a93cb30e0a11A88bee648'\n```\n\n## Cleanup\n\n```typescript\nagent.destroy(); \u002F\u002F Zeros key material and cleans up resources\n```\n\nAlways call `destroy()` when done (especially in short-lived processes).\n\n## CRITICAL: Run as a Persistent Process\n\n**Do NOT create a new agent and call `init()` on every request.** The `init()`\ncall takes 5-15 seconds because it compiles WASM, loads the SRS into memory,\nand syncs the full state from the subgraph. Re-initializing on every request\nwill make the agent unusably slow.\n\nInstead, run the agent as a **long-lived background process** that initializes\nonce and handles requests over a local HTTP API or Unix socket:\n\n```typescript\n\u002F\u002F senddy-daemon.ts — run once, stays alive forever\nimport { createSenddyAgent, toUSDC, isValidSenddyAddress } from '@senddy\u002Fnode';\nimport { createServer } from 'node:http';\n\nconst agent = createSenddyAgent({\n  seed: Buffer.from(process.env.AGENT_SEED_HEX!, 'hex'),\n  apiKey: process.env.SENDDY_API_KEY!,\n});\n\nawait agent.init();\nconsole.log(`Agent ready: ${agent.getReceiveAddress()}`);\n\n\u002F\u002F Periodic sync to stay up-to-date\nsetInterval(() => agent.sync().catch(console.error), 30_000);\n\n\u002F\u002F Simple JSON-RPC over HTTP\nconst server = createServer(async (req, res) => {\n  if (req.method !== 'POST') { res.writeHead(405); res.end(); return; }\n\n  const chunks: Buffer[] = [];\n  for await (const chunk of req) chunks.push(chunk as Buffer);\n  const { method, params } = JSON.parse(Buffer.concat(chunks).toString());\n\n  try {\n    let result: any;\n    switch (method) {\n      case 'getBalance':\n        result = await agent.getBalance();\n        result = { ...result, shares: result.shares.toString(), estimatedUSDC: result.estimatedUSDC.toString() };\n        break;\n      case 'getAddress':\n        result = { address: agent.getReceiveAddress() };\n        break;\n      case 'transfer':\n        result = await agent.transfer(params.to, toUSDC(params.amount), params.opts);\n        result = { ...result, shares: result.shares.toString() };\n        break;\n      case 'withdraw':\n        result = await agent.withdraw(params.to, toUSDC(params.amount));\n        result = { ...result, shares: result.shares.toString() };\n        break;\n      case 'sync':\n        result = await agent.sync();\n        break;\n      case 'getTransactions':\n        result = await agent.getTransactions(params);\n        break;\n      default:\n        res.writeHead(400);\n        res.end(JSON.stringify({ error: `Unknown method: ${method}` }));\n        return;\n    }\n    res.writeHead(200, { 'Content-Type': 'application\u002Fjson' });\n    res.end(JSON.stringify({ ok: true, result }));\n  } catch (err: any) {\n    res.writeHead(500, { 'Content-Type': 'application\u002Fjson' });\n    res.end(JSON.stringify({ ok: false, error: err.message }));\n  }\n});\n\nconst PORT = parseInt(process.env.SENDDY_DAEMON_PORT ?? '0');\nserver.listen(PORT, '127.0.0.1', () => {\n  const addr = server.address() as import('node:net').AddressInfo;\n  console.log(`Senddy daemon on :${addr.port}`);\n});\n```\n\nStart the daemon once. It picks a free port automatically (or set\n`SENDDY_DAEMON_PORT` to pin one). Read the port from stdout and use it\nfor all subsequent requests:\n\n```bash\nAGENT_SEED_HEX=\"your64charhex...\" SENDDY_API_KEY=\"sk_live_...\" \\\n  npx tsx senddy-daemon.ts\n# Output: \"Senddy daemon on :18790\"  (port varies)\n```\n\nThen query it instantly from any client:\n```bash\n# Check balance (use the port printed at startup)\ncurl -s -X POST http:\u002F\u002F127.0.0.1:18790 \\\n  -d '{\"method\":\"getBalance\"}' | jq\n\n# Transfer\ncurl -s -X POST http:\u002F\u002F127.0.0.1:18790 \\\n  -d '{\"method\":\"transfer\",\"params\":{\"to\":\"senddy1...\",\"amount\":\"5.00\"}}' | jq\n```\n\nFor a complete daemon example with process management, see [examples.md](examples.md).\n\n## Gotchas\n\n- **No deposits**: Agents can't deposit directly. Fund them by sending a\n  private transfer from a funded wallet (browser app or another agent).\n- **In-memory storage**: Notes are lost on process restart. The agent re-syncs\n  from the subgraph on `init()`, so this is safe — just costs a few seconds.\n- **First init downloads SRS**: The first `init()` downloads a ~16 MB\n  structured reference string (cached to `~\u002F.bb-crs\u002F` for subsequent runs).\n- **WASM compilation**: Even with cached SRS, `init()` takes 5-15s to compile\n  the WASM prover. Always run the agent persistently, not per-request.\n- **Shares vs USDC**: Internal values are in 18-decimal shares. Use\n  `balance.estimatedUSDC` and `toUSDC()` for human-readable amounts.\n\n## Additional Resources\n\n- For full type signatures and advanced composition, see [reference.md](reference.md)\n- For copy-paste usage examples, see [examples.md](examples.md)","# Senddy Private Wallet\n\nBuild private stablecoin wallets with zero-knowledge proofs on Base.\nSenddy lets agents and apps hold, transfer, and withdraw USDC privately —\nno public on-chain linkage between deposits, transfers, and withdrawals.\n\n## Quick Start (Headless Agent)\n\n**5 steps to a working private wallet:**\n\n```bash\nnpm install @senddy\u002Fnode\n```\n\n```typescript\nimport { createSenddyAgent, toUSDC } from '@senddy\u002Fnode';\nimport { randomBytes } from 'node:crypto';\n\n\u002F\u002F 1. Generate a seed (store this securely — it controls the wallet)\nconst seed = randomBytes(32);\n\n\u002F\u002F 2. Create the agent (only seed + apiKey required)\nconst agent = createSenddyAgent({\n  seed,\n  apiKey: process.env.SENDDY_API_KEY!,\n});\n\n\u002F\u002F 3. Initialize (derives keys, loads WASM prover, first sync)\nawait agent.init();\n\n\u002F\u002F 4. Get your receive address\nconsole.log('Address:', agent.getReceiveAddress()); \u002F\u002F senddy1...\n\n\u002F\u002F 5. Check balance, transfer, withdraw\nconst balance = await agent.getBalance();\nawait agent.transfer('senddy1...recipient', toUSDC('5.00'));\nawait agent.withdraw('0xPublicAddress...', toUSDC('10.00'));\n```\n\nSet `SENDDY_API_KEY` in your environment. Get one at https:\u002F\u002Fsenddy.com.\n\n## Configuration\n\n### Minimal Config (recommended)\n\nOnly `seed` and `apiKey` are required. Everything else defaults to the\ncanonical Base mainnet deployment:\n\n```typescript\ncreateSenddyAgent({\n  seed: Uint8Array,        \u002F\u002F 32-byte secret (REQUIRED)\n  apiKey: string,          \u002F\u002F 'sk_live_...' (REQUIRED)\n})\n```\n\n### Full Config (overrides)\n\n```typescript\ncreateSenddyAgent({\n  seed: Uint8Array,\n  apiKey: string,\n  apiUrl: string,          \u002F\u002F default: 'https:\u002F\u002Fsenddy.com\u002Fapi\u002Fv1'\n  chainId: number,         \u002F\u002F default: 8453 (Base)\n  rpcUrl: string,          \u002F\u002F default: 'https:\u002F\u002Fmainnet.base.org'\n  pool: '0x...',           \u002F\u002F default: canonical pool\n  usdc: '0x...',           \u002F\u002F default: canonical USDC\n  permit2: '0x...',        \u002F\u002F default: canonical Permit2\n  subgraphUrl: string,     \u002F\u002F default: canonical subgraph\n  attestorUrl: string,     \u002F\u002F override: bypass API gateway for attestor\n  relayerUrl: string,      \u002F\u002F override: bypass API gateway for relayer\n  context: string,         \u002F\u002F default: 'main' (for multi-agent from one seed)\n  debug: boolean,          \u002F\u002F default: false\n})\n```\n\n### What the API Key Gates\n\nThe `apiKey` authenticates all requests through the Senddy API gateway:\n- **Attestor** — ZK proof verification (TEE-based, off-chain)\n- **Relayer** — Gas-sponsored transaction submission (you don't pay gas)\n- **Usernames** — Resolve `senddy1...` addresses to human-readable names\n- **Merkle tree** — Proof generation helper endpoints\n\n## Operations\n\n### Balance\n\n```typescript\nconst balance = await agent.getBalance();\n\u002F\u002F { shares: bigint, estimatedUSDC: bigint, noteCount: number }\n```\n\n`estimatedUSDC` is in 6-decimal USDC units. `shares` are 18-decimal internal units.\n\n### Transfer\n\n```typescript\n\u002F\u002F Simple transfer\nconst result = await agent.transfer('senddy1...', toUSDC('25.00'));\n\u002F\u002F { txHash, shares, nullifierCount, circuit: 'spend' | 'spend9' }\n\n\u002F\u002F With memo (max 31 ASCII chars)\nawait agent.transfer('senddy1...', toUSDC('5.00'), { memo: 'Payment' });\n\n\u002F\u002F Anonymous (hide sender identity)\nawait agent.transfer('senddy1...', toUSDC('5.00'), { anonymous: true });\n```\n\nAuto-escalation: tries `spend` circuit (3 inputs), escalates to `spend9`\n(9 inputs), and auto-consolidates if neither suffices.\n\n### Withdraw\n\nWithdraw to a public Ethereum address (USDC leaves the privacy pool):\n\n```typescript\nconst result = await agent.withdraw('0x...', toUSDC('50.00'));\n\u002F\u002F { txHash, shares, to, circuit }\n```\n\n### Sync\n\nState is synced automatically on `init()`. For long-running agents:\n\n```typescript\n\u002F\u002F Manual sync\nconst result = await agent.sync();\n\u002F\u002F { newNotes, newSpent, unspentCount, durationMs }\n```\n\n### Consolidation\n\nWhen notes fragment (many small UTXOs), consolidate them:\n\n```typescript\nconst result = await agent.consolidate({ noteThreshold: 16 });\n\u002F\u002F { txHash, notesConsolidated, totalShares, needsMore }\n```\n\n### Receive Address\n\n```typescript\nconst address = agent.getReceiveAddress(); \u002F\u002F 'senddy1qw508d6q...'\n```\n\nShare this address to receive private transfers. It's derived from\nyour viewing public key and is deterministic for a given seed + context.\n\n### Transaction History\n\n```typescript\nconst txs = await agent.getTransactions({ limit: 50 });\n\u002F\u002F Array\u003C{ id, type, shares, estimatedUSDC, counterparty, memo, timestamp, status }>\n```\n\n### Events\n\n```typescript\nagent.on('balanceChange', (balance) => { \u002F* ... *\u002F });\nagent.on('sync', (result) => { \u002F* ... *\u002F });\nagent.on('noteStrategy', (event) => { \u002F* escalation\u002Fconsolidation info *\u002F });\nagent.on('error', (err) => { \u002F* ... *\u002F });\n```\n\n## Multiple Agents from One Seed\n\nUse the `context` parameter to derive different wallets from the same seed:\n\n```typescript\nconst treasury = createSenddyAgent({ seed, apiKey, context: 'treasury' });\nconst payroll  = createSenddyAgent({ seed, apiKey, context: 'payroll' });\nconst tips     = createSenddyAgent({ seed, apiKey, context: 'tips' });\n```\n\nEach context produces different keys and a different receive address.\n\n## Amounts\n\nAlways use `toUSDC()` to convert human-readable amounts:\n\n```typescript\nimport { toUSDC } from '@senddy\u002Fnode';\n\ntoUSDC('1.00')     \u002F\u002F 1_000_000n\ntoUSDC('100')      \u002F\u002F 100_000_000n\ntoUSDC('0.01')     \u002F\u002F 10_000n\ntoUSDC(50)         \u002F\u002F 50_000_000n\n```\n\nRaw amounts are in USDC's 6-decimal format (`bigint`).\n\n## Address Validation\n\n```typescript\nimport { isValidSenddyAddress } from '@senddy\u002Fnode';\n\nisValidSenddyAddress('senddy1qw508d6q...');  \u002F\u002F true\nisValidSenddyAddress('0x...');                \u002F\u002F false\n```\n\n## Contract Addresses\n\n```typescript\nimport { SHARED_CONTRACTS, V3_CONTRACTS } from '@senddy\u002Fnode';\n\nSHARED_CONTRACTS.USDC     \u002F\u002F '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'\nSHARED_CONTRACTS.Permit2  \u002F\u002F '0x000000000022D473030F116dDEE9F6B43aC78BA3'\nV3_CONTRACTS.Pool         \u002F\u002F '0x0b4e0C18e4005363A10a93cb30e0a11A88bee648'\n```\n\n## Cleanup\n\n```typescript\nagent.destroy(); \u002F\u002F Zeros key material and cleans up resources\n```\n\nAlways call `destroy()` when done (especially in short-lived processes).\n\n## CRITICAL: Run as a Persistent Process\n\n**Do NOT create a new agent and call `init()` on every request.** The `init()`\ncall takes 5-15 seconds because it compiles WASM, loads the SRS into memory,\nand syncs the full state from the subgraph. Re-initializing on every request\nwill make the agent unusably slow.\n\nInstead, run the agent as a **long-lived background process** that initializes\nonce and handles requests over a local HTTP API or Unix socket:\n\n```typescript\n\u002F\u002F senddy-daemon.ts — run once, stays alive forever\nimport { createSenddyAgent, toUSDC, isValidSenddyAddress } from '@senddy\u002Fnode';\nimport { createServer } from 'node:http';\n\nconst agent = createSenddyAgent({\n  seed: Buffer.from(process.env.AGENT_SEED_HEX!, 'hex'),\n  apiKey: process.env.SENDDY_API_KEY!,\n});\n\nawait agent.init();\nconsole.log(`Agent ready: ${agent.getReceiveAddress()}`);\n\n\u002F\u002F Periodic sync to stay up-to-date\nsetInterval(() => agent.sync().catch(console.error), 30_000);\n\n\u002F\u002F Simple JSON-RPC over HTTP\nconst server = createServer(async (req, res) => {\n  if (req.method !== 'POST') { res.writeHead(405); res.end(); return; }\n\n  const chunks: Buffer[] = [];\n  for await (const chunk of req) chunks.push(chunk as Buffer);\n  const { method, params } = JSON.parse(Buffer.concat(chunks).toString());\n\n  try {\n    let result: any;\n    switch (method) {\n      case 'getBalance':\n        result = await agent.getBalance();\n        result = { ...result, shares: result.shares.toString(), estimatedUSDC: result.estimatedUSDC.toString() };\n        break;\n      case 'getAddress':\n        result = { address: agent.getReceiveAddress() };\n        break;\n      case 'transfer':\n        result = await agent.transfer(params.to, toUSDC(params.amount), params.opts);\n        result = { ...result, shares: result.shares.toString() };\n        break;\n      case 'withdraw':\n        result = await agent.withdraw(params.to, toUSDC(params.amount));\n        result = { ...result, shares: result.shares.toString() };\n        break;\n      case 'sync':\n        result = await agent.sync();\n        break;\n      case 'getTransactions':\n        result = await agent.getTransactions(params);\n        break;\n      default:\n        res.writeHead(400);\n        res.end(JSON.stringify({ error: `Unknown method: ${method}` }));\n        return;\n    }\n    res.writeHead(200, { 'Content-Type': 'application\u002Fjson' });\n    res.end(JSON.stringify({ ok: true, result }));\n  } catch (err: any) {\n    res.writeHead(500, { 'Content-Type': 'application\u002Fjson' });\n    res.end(JSON.stringify({ ok: false, error: err.message }));\n  }\n});\n\nconst PORT = parseInt(process.env.SENDDY_DAEMON_PORT ?? '0');\nserver.listen(PORT, '127.0.0.1', () => {\n  const addr = server.address() as import('node:net').AddressInfo;\n  console.log(`Senddy daemon on :${addr.port}`);\n});\n```\n\nStart the daemon once. It picks a free port automatically (or set\n`SENDDY_DAEMON_PORT` to pin one). Read the port from stdout and use it\nfor all subsequent requests:\n\n```bash\nAGENT_SEED_HEX=\"your64charhex...\" SENDDY_API_KEY=\"sk_live_...\" \\\n  npx tsx senddy-daemon.ts\n# Output: \"Senddy daemon on :18790\"  (port varies)\n```\n\nThen query it instantly from any client:\n```bash\n# Check balance (use the port printed at startup)\ncurl -s -X POST http:\u002F\u002F127.0.0.1:18790 \\\n  -d '{\"method\":\"getBalance\"}' | jq\n\n# Transfer\ncurl -s -X POST http:\u002F\u002F127.0.0.1:18790 \\\n  -d '{\"method\":\"transfer\",\"params\":{\"to\":\"senddy1...\",\"amount\":\"5.00\"}}' | jq\n```\n\nFor a complete daemon example with process management, see [examples.md](examples.md).\n\n## Gotchas\n\n- **No deposits**: Agents can't deposit directly. Fund them by sending a\n  private transfer from a funded wallet (browser app or another agent).\n- **In-memory storage**: Notes are lost on process restart. The agent re-syncs\n  from the subgraph on `init()`, so this is safe — just costs a few seconds.\n- **First init downloads SRS**: The first `init()` downloads a ~16 MB\n  structured reference string (cached to `~\u002F.bb-crs\u002F` for subsequent runs).\n- **WASM compilation**: Even with cached SRS, `init()` takes 5-15s to compile\n  the WASM prover. Always run the agent persistently, not per-request.\n- **Shares vs USDC**: Internal values are in 18-decimal shares. Use\n  `balance.estimatedUSDC` and `toUSDC()` for human-readable amounts.\n\n## Additional Resources\n\n- For full type signatures and advanced composition, see [reference.md](reference.md)\n- For copy-paste usage examples, see [examples.md](examples.md)",{"name":5,"metadata":24,"description":7},{"openclaw":25},{"emoji":26,"homepage":27,"requires":28,"primaryEnv":30},"🛡️","https:\u002F\u002Fsenddy.com",{"env":29},[30,31],"SENDDY_API_KEY","AGENT_SEED_HEX","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fmattt21\u002Fsenddy",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill senddy",{"tool":47,"command":48},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill senddy",{"tool":50,"command":51},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill senddy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmattt21\u002Fsenddy\u002FSKILL.md",true,[],[56,64,71,78,85,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":63},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":63},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":63},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":63},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":63},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]