[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6N1P4KWB85QDCVS9PP42P32":3,"skill-same:01M6N1P4KWB85QDCVS9PP42P32":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6N1P4KWB85QDCVS9PP42P32","poseidon-otc",null,"Execute trustless P2P token swaps on Solana via the Poseidon OTC protocol. Create trade rooms, negotiate offers, lock tokens with time-based escrow, and execute atomic on-chain swaps. Supports agent-to-agent trading with real-time WebSocket updates.","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fposeidon-otc\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"poseidon otc","token","on-chain","updates","lock","escrow","with","negotiate","chain","tokens","create","swaps","trade","time","agent-to-agent","solana","trading","p2p","real-time","websocket","2026-11-10 10:12:30",false,"---\nname: poseidon-otc\ndescription: Execute trustless P2P token swaps on Solana via the Poseidon OTC protocol. Create trade rooms, negotiate offers, lock tokens with time-based escrow, and execute atomic on-chain swaps. Supports agent-to-agent trading with real-time WebSocket updates.\nmetadata: { \"openclaw\": { \"emoji\": \"?\", \"requires\": { \"env\": [\"POSEIDON_BURNER_KEY\"] }, \"primaryEnv\": \"POSEIDON_BURNER_KEY\", \"homepage\": \"https:\u002F\u002Fposeidon.cash\" } }\n---\n\n# Poseidon OTC Skill\n\n**TL;DR for Agents:** This skill lets you trade tokens with humans or other agents on Solana. You create a room, both parties deposit tokens to escrow, confirm, and execute an atomic swap. No trust required - it's all on-chain.\n\n## When to Use This Skill\n\n- **Trading tokens P2P** - Swap any SPL token directly with another party\n- **Agent-to-agent commerce** - Two AI agents can negotiate and execute trades autonomously  \n- **Large OTC deals** - Avoid slippage from DEX trades by going direct\n- **Protected trades** - Use lockups to prevent counterparty from dumping immediately\n- **Multi-token swaps** - Trade up to 4 tokens per side in one atomic transaction\n\n## Quick Start for Agents\n\n### 1. Initialize (requires wallet)\n```typescript\nimport { PoseidonOTC } from 'poseidon-otc-skill';\n\nconst client = new PoseidonOTC({\n  burnerKey: process.env.POSEIDON_BURNER_KEY  \u002F\u002F base58 private key\n});\n```\n\n### 2. Create a Trade Room\n```typescript\nconst { roomId, link } = await client.createRoom();\n\u002F\u002F Share `link` with counterparty or another agent\n```\n\n### 3. Wait for Counterparty & Set Offer\n```typescript\n\u002F\u002F Check room status\nconst room = await client.getRoom(roomId);\n\n\u002F\u002F Set what you're offering (100 USDC example)\nawait client.updateOffer(roomId, [{\n  mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',  \u002F\u002F USDC mint\n  amount: 100000000,  \u002F\u002F 100 USDC (6 decimals)\n  decimals: 6\n}]);\n```\n\n### 4. Confirm & Execute\n```typescript\n\u002F\u002F First confirmation = \"I agree to these terms\"\nawait client.confirmTrade(roomId, 'first');\n\n\u002F\u002F After deposits, second confirmation\nawait client.confirmTrade(roomId, 'second');\n\n\u002F\u002F Execute the atomic swap\nconst { txSignature } = await client.executeSwap(roomId);\n```\n\n## Complete Trade Flow\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                        TRADE LIFECYCLE                          │\n├─────────────────────────────────────────────────────────────────┤\n│                                                                 │\n│  1. CREATE ROOM                                                 │\n│     └─> Party A calls createRoom()                              │\n│         Returns: roomId, shareable link                         │\n│                                                                 │\n│  2. JOIN ROOM                                                   │\n│     └─> Party B calls joinRoom(roomId)                          │\n│         Room now has both participants                          │\n│                                                                 │\n│  3. SET OFFERS                                                  │\n│     └─> Both parties call updateOffer(roomId, tokens)           │\n│         Each specifies what they're putting up                  │\n│                                                                 │\n│  4. FIRST CONFIRM (agree on terms)                              │\n│     └─> Both call confirmTrade(roomId, 'first')                 │\n│         \"I agree to swap my X for your Y\"                       │\n│                                                                 │\n│  5. DEPOSIT TO ESCROW                                           │\n│     └─> Tokens move to on-chain escrow                          │\n│         (Handled by frontend or depositToEscrow)                │\n│                                                                 │\n│  6. SECOND CONFIRM (verify deposits)                            │\n│     └─> Both call confirmTrade(roomId, 'second')                │\n│         \"I see the deposits, ready to swap\"                     │\n│                                                                 │\n│  7. EXECUTE SWAP                                                │\n│     └─> Either party calls executeSwap(roomId)                  │\n│         Atomic on-chain swap via relayer                        │\n│         Returns: txSignature                                    │\n│                                                                 │\n│  [OPTIONAL] LOCKUP FLOW                                         │\n│     └─> Before step 4, Party A can proposeLockup(roomId, secs)  │\n│     └─> Party B must acceptLockup(roomId) to continue           │\n│     └─> After execute, locked tokens claimed via claimLockedTokens │\n│                                                                 │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## API Reference\n\n### Room Management\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `createRoom(options?)` | `{ inviteCode?: string }` | `{ roomId, link }` | Create new room |\n| `getRoom(roomId)` | `roomId: string` | `TradeRoom` | Get full room state |\n| `getUserRooms(wallet?)` | `wallet?: string` | `TradeRoom[]` | List your rooms |\n| `joinRoom(roomId, inviteCode?)` | `roomId, inviteCode?` | `{ success }` | Join as Party B |\n| `cancelRoom(roomId)` | `roomId: string` | `{ success }` | Cancel & refund |\n| `getRoomLink(roomId)` | `roomId: string` | `string` | Get share URL |\n\n### Trading\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `updateOffer(roomId, tokens)` | `roomId, [{mint, amount, decimals}]` | `{ success }` | Set your offer |\n| `withdrawFromOffer(roomId, tokens)` | `roomId, tokens[]` | `{ success }` | Pull back tokens |\n| `confirmTrade(roomId, stage)` | `roomId, 'first'│'second'` | `{ success }` | Confirm stage |\n| `executeSwap(roomId)` | `roomId: string` | `{ txSignature }` | Execute swap |\n| `declineOffer(roomId)` | `roomId: string` | `{ success }` | Reject terms |\n\n### Lockups (Anti-Dump)\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `proposeLockup(roomId, seconds)` | `roomId, seconds` | `{ success }` | Propose lock |\n| `acceptLockup(roomId)` | `roomId: string` | `{ success }` | Accept lock |\n| `getLockupStatus(roomId)` | `roomId: string` | `{ canClaim, timeRemaining }` | Check timer |\n| `claimLockedTokens(roomId)` | `roomId: string` | `{ txSignature }` | Claim after expiry |\n\n### Utility\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `getBalance()` | none | `{ sol: number }` | Check SOL balance |\n| `isAutonomous()` | none | `boolean` | Has signing wallet? |\n| `getWebSocketUrl()` | none | `string` | Get WS endpoint |\n\n## WebSocket Real-Time Updates\n\n**Don't poll. Subscribe.**\n\nInstead of repeatedly calling `getRoom()`, connect to WebSocket for instant updates:\n\n**Endpoint:** `wss:\u002F\u002Fposeidon.cash\u002Fws\u002Ftrade-room`\n\n### Subscribe to Room Events\n```typescript\nconst { unsubscribe } = await client.subscribeToRoom(roomId, (event) => {\n  switch (event.type) {\n    case 'join':\n      console.log('Counterparty joined!');\n      break;\n    case 'offer':\n      console.log('Offer updated:', event.data.tokens);\n      break;\n    case 'confirm':\n      console.log('Confirmation received');\n      break;\n    case 'execute':\n      console.log('Swap complete! TX:', event.data.txSignature);\n      break;\n    case 'cancel':\n      console.log('Trade cancelled');\n      break;\n  }\n});\n```\n\n### Event Types\n| Event | When It Fires |\n|-------|--------------|\n| `full-state` | Immediately on subscribe - complete room state |\n| `join` | Counterparty joined the room |\n| `offer` | Someone updated their offer |\n| `confirm` | Someone confirmed (first or second) |\n| `lockup` | Lockup proposed or accepted |\n| `execute` | Swap executed successfully |\n| `cancel` | Room was cancelled |\n| `terminated` | Room expired or terminated |\n| `error` | Something went wrong |\n\n### WebSocket Actions (Faster than HTTP)\n```typescript\nawait client.sendOfferViaWs(roomId, tokens);      \u002F\u002F Update offer\nawait client.sendConfirmViaWs(roomId, 'first');   \u002F\u002F Confirm\nawait client.sendLockupProposalViaWs(roomId, 3600); \u002F\u002F Propose 1hr lock\nawait client.sendAcceptLockupViaWs(roomId);       \u002F\u002F Accept lock\nawait client.sendExecuteViaWs(roomId);            \u002F\u002F Execute swap\n```\n\n## Agent-to-Agent Trading Example\n\n**Scenario:** Agent A wants to sell 1000 USDC for 5 SOL to Agent B\n\n### Agent A (Seller):\n```typescript\n\u002F\u002F 1. Create room\nconst { roomId } = await client.createRoom();\n\n\u002F\u002F 2. Set offer (1000 USDC)\nawait client.updateOffer(roomId, [{\n  mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',\n  amount: 1000000000,  \u002F\u002F 1000 USDC\n  decimals: 6\n}]);\n\n\u002F\u002F 3. Share roomId with Agent B via your inter-agent protocol\n\u002F\u002F 4. Subscribe to updates\nawait client.subscribeToRoom(roomId, async (event) => {\n  if (event.type === 'offer') {\n    \u002F\u002F Check if Agent B's offer is acceptable (5 SOL)\n    const room = await client.getRoom(roomId);\n    if (room.partyBTokenSlots?.[0]?.amount >= 5 * 1e9) {\n      await client.confirmTrade(roomId, 'first');\n    }\n  }\n  if (event.type === 'confirm' && room.partyBFirstConfirm) {\n    await client.confirmTrade(roomId, 'second');\n  }\n});\n```\n\n### Agent B (Buyer):\n```typescript\n\u002F\u002F 1. Join the room\nawait client.joinRoom(roomId);\n\n\u002F\u002F 2. Set offer (5 SOL)\nawait client.updateOffer(roomId, [{\n  mint: 'So11111111111111111111111111111111111111112',  \u002F\u002F wSOL\n  amount: 5000000000,  \u002F\u002F 5 SOL\n  decimals: 9\n}]);\n\n\u002F\u002F 3. Subscribe and react\nawait client.subscribeToRoom(roomId, async (event) => {\n  if (event.type === 'confirm') {\n    const room = await client.getRoom(roomId);\n    if (room.partyAFirstConfirm && !room.partyBFirstConfirm) {\n      await client.confirmTrade(roomId, 'first');\n    }\n    if (room.partyASecondConfirm && room.partyBSecondConfirm) {\n      \u002F\u002F Both confirmed, execute!\n      await client.executeSwap(roomId);\n    }\n  }\n});\n```\n\n## Common Token Mints\n\n| Token | Mint Address | Decimals |\n|-------|--------------|----------|\n| USDC | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` | 6 |\n| USDT | `Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB` | 6 |\n| wSOL | `So11111111111111111111111111111111111111112` | 9 |\n| BONK | `DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263` | 5 |\n\n## Environment Variables\n\n```bash\nPOSEIDON_BURNER_KEY=\u003Cbase58-private-key>  # Required for autonomous mode\nPOSEIDON_API_URL=https:\u002F\u002Fposeidon.cash    # API endpoint (default: mainnet)\nPOSEIDON_RPC_URL=https:\u002F\u002Fapi.mainnet-beta.solana.com  # Solana RPC\n```\n\n## Security Notes\n\n- **Escrow is on-chain** - Funds are held by the Solana program, not the API\n- **Atomic swaps** - Either both sides complete or neither does\n- **Signatures expire** - Auth signatures valid for 24 hours\n- **Lockups are enforced on-chain** - Can't bypass the timer\n- **Hot wallet warning** - Only fund your burner wallet with amounts you're comfortable risking\n\n## Program ID\n\n**Mainnet:** `AfiRReYhvykHhKXhwjhcsXFejHdxqYLk2QLWnjvvLKUN`\n\n## Links\n\n- Website: https:\u002F\u002Fposeidon.cash\n- Docs: https:\u002F\u002Fdocs.poseidon.cash\n","# Poseidon OTC Skill\n\n**TL;DR for Agents:** This skill lets you trade tokens with humans or other agents on Solana. You create a room, both parties deposit tokens to escrow, confirm, and execute an atomic swap. No trust required - it's all on-chain.\n\n## When to Use This Skill\n\n- **Trading tokens P2P** - Swap any SPL token directly with another party\n- **Agent-to-agent commerce** - Two AI agents can negotiate and execute trades autonomously  \n- **Large OTC deals** - Avoid slippage from DEX trades by going direct\n- **Protected trades** - Use lockups to prevent counterparty from dumping immediately\n- **Multi-token swaps** - Trade up to 4 tokens per side in one atomic transaction\n\n## Quick Start for Agents\n\n### 1. Initialize (requires wallet)\n```typescript\nimport { PoseidonOTC } from 'poseidon-otc-skill';\n\nconst client = new PoseidonOTC({\n  burnerKey: process.env.POSEIDON_BURNER_KEY  \u002F\u002F base58 private key\n});\n```\n\n### 2. Create a Trade Room\n```typescript\nconst { roomId, link } = await client.createRoom();\n\u002F\u002F Share `link` with counterparty or another agent\n```\n\n### 3. Wait for Counterparty & Set Offer\n```typescript\n\u002F\u002F Check room status\nconst room = await client.getRoom(roomId);\n\n\u002F\u002F Set what you're offering (100 USDC example)\nawait client.updateOffer(roomId, [{\n  mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',  \u002F\u002F USDC mint\n  amount: 100000000,  \u002F\u002F 100 USDC (6 decimals)\n  decimals: 6\n}]);\n```\n\n### 4. Confirm & Execute\n```typescript\n\u002F\u002F First confirmation = \"I agree to these terms\"\nawait client.confirmTrade(roomId, 'first');\n\n\u002F\u002F After deposits, second confirmation\nawait client.confirmTrade(roomId, 'second');\n\n\u002F\u002F Execute the atomic swap\nconst { txSignature } = await client.executeSwap(roomId);\n```\n\n## Complete Trade Flow\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                        TRADE LIFECYCLE                          │\n├─────────────────────────────────────────────────────────────────┤\n│                                                                 │\n│  1. CREATE ROOM                                                 │\n│     └─> Party A calls createRoom()                              │\n│         Returns: roomId, shareable link                         │\n│                                                                 │\n│  2. JOIN ROOM                                                   │\n│     └─> Party B calls joinRoom(roomId)                          │\n│         Room now has both participants                          │\n│                                                                 │\n│  3. SET OFFERS                                                  │\n│     └─> Both parties call updateOffer(roomId, tokens)           │\n│         Each specifies what they're putting up                  │\n│                                                                 │\n│  4. FIRST CONFIRM (agree on terms)                              │\n│     └─> Both call confirmTrade(roomId, 'first')                 │\n│         \"I agree to swap my X for your Y\"                       │\n│                                                                 │\n│  5. DEPOSIT TO ESCROW                                           │\n│     └─> Tokens move to on-chain escrow                          │\n│         (Handled by frontend or depositToEscrow)                │\n│                                                                 │\n│  6. SECOND CONFIRM (verify deposits)                            │\n│     └─> Both call confirmTrade(roomId, 'second')                │\n│         \"I see the deposits, ready to swap\"                     │\n│                                                                 │\n│  7. EXECUTE SWAP                                                │\n│     └─> Either party calls executeSwap(roomId)                  │\n│         Atomic on-chain swap via relayer                        │\n│         Returns: txSignature                                    │\n│                                                                 │\n│  [OPTIONAL] LOCKUP FLOW                                         │\n│     └─> Before step 4, Party A can proposeLockup(roomId, secs)  │\n│     └─> Party B must acceptLockup(roomId) to continue           │\n│     └─> After execute, locked tokens claimed via claimLockedTokens │\n│                                                                 │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## API Reference\n\n### Room Management\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `createRoom(options?)` | `{ inviteCode?: string }` | `{ roomId, link }` | Create new room |\n| `getRoom(roomId)` | `roomId: string` | `TradeRoom` | Get full room state |\n| `getUserRooms(wallet?)` | `wallet?: string` | `TradeRoom[]` | List your rooms |\n| `joinRoom(roomId, inviteCode?)` | `roomId, inviteCode?` | `{ success }` | Join as Party B |\n| `cancelRoom(roomId)` | `roomId: string` | `{ success }` | Cancel & refund |\n| `getRoomLink(roomId)` | `roomId: string` | `string` | Get share URL |\n\n### Trading\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `updateOffer(roomId, tokens)` | `roomId, [{mint, amount, decimals}]` | `{ success }` | Set your offer |\n| `withdrawFromOffer(roomId, tokens)` | `roomId, tokens[]` | `{ success }` | Pull back tokens |\n| `confirmTrade(roomId, stage)` | `roomId, 'first'│'second'` | `{ success }` | Confirm stage |\n| `executeSwap(roomId)` | `roomId: string` | `{ txSignature }` | Execute swap |\n| `declineOffer(roomId)` | `roomId: string` | `{ success }` | Reject terms |\n\n### Lockups (Anti-Dump)\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `proposeLockup(roomId, seconds)` | `roomId, seconds` | `{ success }` | Propose lock |\n| `acceptLockup(roomId)` | `roomId: string` | `{ success }` | Accept lock |\n| `getLockupStatus(roomId)` | `roomId: string` | `{ canClaim, timeRemaining }` | Check timer |\n| `claimLockedTokens(roomId)` | `roomId: string` | `{ txSignature }` | Claim after expiry |\n\n### Utility\n| Method | Parameters | Returns | Description |\n|--------|------------|---------|-------------|\n| `getBalance()` | none | `{ sol: number }` | Check SOL balance |\n| `isAutonomous()` | none | `boolean` | Has signing wallet? |\n| `getWebSocketUrl()` | none | `string` | Get WS endpoint |\n\n## WebSocket Real-Time Updates\n\n**Don't poll. Subscribe.**\n\nInstead of repeatedly calling `getRoom()`, connect to WebSocket for instant updates:\n\n**Endpoint:** `wss:\u002F\u002Fposeidon.cash\u002Fws\u002Ftrade-room`\n\n### Subscribe to Room Events\n```typescript\nconst { unsubscribe } = await client.subscribeToRoom(roomId, (event) => {\n  switch (event.type) {\n    case 'join':\n      console.log('Counterparty joined!');\n      break;\n    case 'offer':\n      console.log('Offer updated:', event.data.tokens);\n      break;\n    case 'confirm':\n      console.log('Confirmation received');\n      break;\n    case 'execute':\n      console.log('Swap complete! TX:', event.data.txSignature);\n      break;\n    case 'cancel':\n      console.log('Trade cancelled');\n      break;\n  }\n});\n```\n\n### Event Types\n| Event | When It Fires |\n|-------|--------------|\n| `full-state` | Immediately on subscribe - complete room state |\n| `join` | Counterparty joined the room |\n| `offer` | Someone updated their offer |\n| `confirm` | Someone confirmed (first or second) |\n| `lockup` | Lockup proposed or accepted |\n| `execute` | Swap executed successfully |\n| `cancel` | Room was cancelled |\n| `terminated` | Room expired or terminated |\n| `error` | Something went wrong |\n\n### WebSocket Actions (Faster than HTTP)\n```typescript\nawait client.sendOfferViaWs(roomId, tokens);      \u002F\u002F Update offer\nawait client.sendConfirmViaWs(roomId, 'first');   \u002F\u002F Confirm\nawait client.sendLockupProposalViaWs(roomId, 3600); \u002F\u002F Propose 1hr lock\nawait client.sendAcceptLockupViaWs(roomId);       \u002F\u002F Accept lock\nawait client.sendExecuteViaWs(roomId);            \u002F\u002F Execute swap\n```\n\n## Agent-to-Agent Trading Example\n\n**Scenario:** Agent A wants to sell 1000 USDC for 5 SOL to Agent B\n\n### Agent A (Seller):\n```typescript\n\u002F\u002F 1. Create room\nconst { roomId } = await client.createRoom();\n\n\u002F\u002F 2. Set offer (1000 USDC)\nawait client.updateOffer(roomId, [{\n  mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',\n  amount: 1000000000,  \u002F\u002F 1000 USDC\n  decimals: 6\n}]);\n\n\u002F\u002F 3. Share roomId with Agent B via your inter-agent protocol\n\u002F\u002F 4. Subscribe to updates\nawait client.subscribeToRoom(roomId, async (event) => {\n  if (event.type === 'offer') {\n    \u002F\u002F Check if Agent B's offer is acceptable (5 SOL)\n    const room = await client.getRoom(roomId);\n    if (room.partyBTokenSlots?.[0]?.amount >= 5 * 1e9) {\n      await client.confirmTrade(roomId, 'first');\n    }\n  }\n  if (event.type === 'confirm' && room.partyBFirstConfirm) {\n    await client.confirmTrade(roomId, 'second');\n  }\n});\n```\n\n### Agent B (Buyer):\n```typescript\n\u002F\u002F 1. Join the room\nawait client.joinRoom(roomId);\n\n\u002F\u002F 2. Set offer (5 SOL)\nawait client.updateOffer(roomId, [{\n  mint: 'So11111111111111111111111111111111111111112',  \u002F\u002F wSOL\n  amount: 5000000000,  \u002F\u002F 5 SOL\n  decimals: 9\n}]);\n\n\u002F\u002F 3. Subscribe and react\nawait client.subscribeToRoom(roomId, async (event) => {\n  if (event.type === 'confirm') {\n    const room = await client.getRoom(roomId);\n    if (room.partyAFirstConfirm && !room.partyBFirstConfirm) {\n      await client.confirmTrade(roomId, 'first');\n    }\n    if (room.partyASecondConfirm && room.partyBSecondConfirm) {\n      \u002F\u002F Both confirmed, execute!\n      await client.executeSwap(roomId);\n    }\n  }\n});\n```\n\n## Common Token Mints\n\n| Token | Mint Address | Decimals |\n|-------|--------------|----------|\n| USDC | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` | 6 |\n| USDT | `Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB` | 6 |\n| wSOL | `So11111111111111111111111111111111111111112` | 9 |\n| BONK | `DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263` | 5 |\n\n## Environment Variables\n\n```bash\nPOSEIDON_BURNER_KEY=\u003Cbase58-private-key>  # Required for autonomous mode\nPOSEIDON_API_URL=https:\u002F\u002Fposeidon.cash    # API endpoint (default: mainnet)\nPOSEIDON_RPC_URL=https:\u002F\u002Fapi.mainnet-beta.solana.com  # Solana RPC\n```\n\n## Security Notes\n\n- **Escrow is on-chain** - Funds are held by the Solana program, not the API\n- **Atomic swaps** - Either both sides complete or neither does\n- **Signatures expire** - Auth signatures valid for 24 hours\n- **Lockups are enforced on-chain** - Can't bypass the timer\n- **Hot wallet warning** - Only fund your burner wallet with amounts you're comfortable risking\n\n## Program ID\n\n**Mainnet:** `AfiRReYhvykHhKXhwjhcsXFejHdxqYLk2QLWnjvvLKUN`\n\n## Links\n\n- Website: https:\u002F\u002Fposeidon.cash\n- Docs: https:\u002F\u002Fdocs.poseidon.cash\n",{"name":5,"metadata":43,"description":7},{"openclaw":44},{"emoji":45,"homepage":46,"requires":47,"primaryEnv":49},"?","https:\u002F\u002Fposeidon.cash",{"env":48},[49],"POSEIDON_BURNER_KEY","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","人工智能与大型语言模型\u002Fposeidon-otc",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill poseidon-otc",{"tool":64,"command":65},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill poseidon-otc",{"tool":67,"command":68},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill poseidon-otc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fposeidon-otc\u002FSKILL.md",true,[72,78,82,86,92],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"_meta.json","REFERENCE","参考文档",277,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fposeidon-otc\u002F_meta.json",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"package.json",953,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fposeidon-otc\u002Fpackage.json",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"README.md",3903,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fposeidon-otc\u002FREADME.md",{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"src\u002Findex.ts","SCRIPT","脚本",86114,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fposeidon-otc\u002Fsrc\u002Findex.ts",{"path":93,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":94,"sourceHtmlUrl":95},"tsconfig.json",450,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fposeidon-otc\u002Ftsconfig.json",[97,121,142,150,157,182],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":38},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[99,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":122,"name":123,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":38},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[127,128,129,130,131,132,133,106,134,110,135,136,137,33,138,139,140,19,141],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","query","across","positions","prices",{"skillNo":143,"name":144,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":38},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[127,148,149,128,129,130,131,132,133,106,134,110,136,137,33,138,139,140,19,141],"api skill","zerion api skill",{"skillNo":151,"name":152,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":38},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[130,127,156,128,129,131,132,106,134,110,135,136,137,33,138,139,140,19,141],"zerion api mcp",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":38},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[],[164,165,166,167,168,169,170,171,36,172,173,174,175,176,31,177,178,179,180,181],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","python3","install","Market","usd","news","currency","gbp","pip","market data","for",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":38},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[],[164,165,167,189,190,191,192,193,194,174,195,196,197,198,199,200,201,202,141,180],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]