{
  "schemaVersion": "1.0",
  "item": {
    "slug": "solana-basics",
    "name": "solana-skill",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/chattyClaw/solana-basics",
    "canonicalUrl": "https://clawhub.ai/chattyClaw/solana-basics",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/solana-basics",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solana-basics",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "references/helius-api.md",
      "references/jupiter.md",
      "references/security.md",
      "package.json",
      "scripts/wallet.ts",
      "scripts/send.ts"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/solana-basics"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/solana-basics",
    "agentPageUrl": "https://openagent3.xyz/skills/solana-basics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-basics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-basics/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Solana Skill",
        "body": "Comprehensive Solana blockchain interaction using Helius infrastructure."
      },
      {
        "title": "Prerequisites",
        "body": "Helius API Key — Get free at https://dashboard.helius.dev/signup\nStore key in ~/.config/solana-skill/config.json:\n\n{\n  \"heliusApiKey\": \"your-api-key\",\n  \"network\": \"mainnet-beta\"\n}"
      },
      {
        "title": "Wallet Management",
        "body": "Create new wallets (keypair generation)\nImport existing wallets (private key or seed phrase)\nList managed wallets\nSecure key storage (encrypted at rest)"
      },
      {
        "title": "Balance & Assets",
        "body": "Check SOL balance\nGet all token balances (SPL tokens)\nView NFTs and compressed NFTs\nPortfolio valuation (via DAS API)"
      },
      {
        "title": "Transactions",
        "body": "Send SOL\nSend SPL tokens\nTransaction history (enhanced, human-readable)\nPriority fee estimation"
      },
      {
        "title": "Swaps (Jupiter)",
        "body": "Get swap quotes\nExecute token swaps\nSlippage protection"
      },
      {
        "title": "Monitoring",
        "body": "Watch addresses for activity\nTransaction notifications"
      },
      {
        "title": "Check Balance",
        "body": "import { createHelius } from 'helius-sdk';\n\nconst helius = createHelius({ apiKey: 'YOUR_KEY' });\nconst assets = await helius.getAssetsByOwner({\n  ownerAddress: 'WALLET_ADDRESS',\n  displayOptions: {\n    showFungible: true,\n    showNativeBalance: true\n  }\n});"
      },
      {
        "title": "Send SOL",
        "body": "import { Connection, Keypair, SystemProgram, Transaction, sendAndConfirmTransaction, LAMPORTS_PER_SOL } from '@solana/web3.js';\n\nconst connection = new Connection('https://mainnet.helius-rpc.com/?api-key=YOUR_KEY');\nconst tx = new Transaction().add(\n  SystemProgram.transfer({\n    fromPubkey: sender.publicKey,\n    toPubkey: recipientPubkey,\n    lamports: amount * LAMPORTS_PER_SOL\n  })\n);\nawait sendAndConfirmTransaction(connection, tx, [sender]);"
      },
      {
        "title": "Jupiter Swap",
        "body": "// 1. Get quote\nconst quote = await fetch(`https://api.jup.ag/swap/v1/quote?inputMint=${inputMint}&outputMint=${outputMint}&amount=${amount}`);\n\n// 2. Build swap transaction\nconst swap = await fetch('https://api.jup.ag/swap/v1/swap', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\n    quoteResponse: await quote.json(),\n    userPublicKey: wallet.publicKey.toString()\n  })\n});\n\n// 3. Sign and send"
      },
      {
        "title": "API Endpoints",
        "body": "ServiceBase URLHelius RPChttps://mainnet.helius-rpc.com/?api-key=KEYHelius Senderhttps://sender.helius-rpc.com/fastJupiter Quotehttps://api.jup.ag/swap/v1/quoteJupiter Swaphttps://api.jup.ag/swap/v1/swap"
      },
      {
        "title": "Security",
        "body": "Critical rules:\n\nNever log or display private keys\nUse encrypted storage for keys\nValidate all addresses before transactions\nSet reasonable slippage limits (default: 1%)\nAlways confirm large transactions with user\n\nSee references/security.md for detailed security practices."
      },
      {
        "title": "Detailed References",
        "body": "references/helius-api.md — Full Helius API reference\nreferences/security.md — Wallet security best practices\nreferences/jupiter.md — Jupiter swap integration"
      },
      {
        "title": "Common Token Addresses",
        "body": "TokenMint AddressSOLSo11111111111111111111111111111111111111112 (wrapped)USDCEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vUSDTEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBBONKDezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
      },
      {
        "title": "Error Handling",
        "body": "Common errors and solutions:\n\nInsufficient SOL: Need SOL for rent + transaction fees\nToken account not found: Create ATA before sending tokens\nTransaction too large: Reduce instructions or use address lookup tables\nBlockhash expired: Retry with fresh blockhash"
      }
    ],
    "body": "Solana Skill\n\nComprehensive Solana blockchain interaction using Helius infrastructure.\n\nPrerequisites\nHelius API Key — Get free at https://dashboard.helius.dev/signup\nStore key in ~/.config/solana-skill/config.json:\n{\n  \"heliusApiKey\": \"your-api-key\",\n  \"network\": \"mainnet-beta\"\n}\n\nCore Capabilities\nWallet Management\nCreate new wallets (keypair generation)\nImport existing wallets (private key or seed phrase)\nList managed wallets\nSecure key storage (encrypted at rest)\nBalance & Assets\nCheck SOL balance\nGet all token balances (SPL tokens)\nView NFTs and compressed NFTs\nPortfolio valuation (via DAS API)\nTransactions\nSend SOL\nSend SPL tokens\nTransaction history (enhanced, human-readable)\nPriority fee estimation\nSwaps (Jupiter)\nGet swap quotes\nExecute token swaps\nSlippage protection\nMonitoring\nWatch addresses for activity\nTransaction notifications\nQuick Reference\nCheck Balance\nimport { createHelius } from 'helius-sdk';\n\nconst helius = createHelius({ apiKey: 'YOUR_KEY' });\nconst assets = await helius.getAssetsByOwner({\n  ownerAddress: 'WALLET_ADDRESS',\n  displayOptions: {\n    showFungible: true,\n    showNativeBalance: true\n  }\n});\n\nSend SOL\nimport { Connection, Keypair, SystemProgram, Transaction, sendAndConfirmTransaction, LAMPORTS_PER_SOL } from '@solana/web3.js';\n\nconst connection = new Connection('https://mainnet.helius-rpc.com/?api-key=YOUR_KEY');\nconst tx = new Transaction().add(\n  SystemProgram.transfer({\n    fromPubkey: sender.publicKey,\n    toPubkey: recipientPubkey,\n    lamports: amount * LAMPORTS_PER_SOL\n  })\n);\nawait sendAndConfirmTransaction(connection, tx, [sender]);\n\nJupiter Swap\n// 1. Get quote\nconst quote = await fetch(`https://api.jup.ag/swap/v1/quote?inputMint=${inputMint}&outputMint=${outputMint}&amount=${amount}`);\n\n// 2. Build swap transaction\nconst swap = await fetch('https://api.jup.ag/swap/v1/swap', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({\n    quoteResponse: await quote.json(),\n    userPublicKey: wallet.publicKey.toString()\n  })\n});\n\n// 3. Sign and send\n\nAPI Endpoints\nService\tBase URL\nHelius RPC\thttps://mainnet.helius-rpc.com/?api-key=KEY\nHelius Sender\thttps://sender.helius-rpc.com/fast\nJupiter Quote\thttps://api.jup.ag/swap/v1/quote\nJupiter Swap\thttps://api.jup.ag/swap/v1/swap\nSecurity\n\nCritical rules:\n\nNever log or display private keys\nUse encrypted storage for keys\nValidate all addresses before transactions\nSet reasonable slippage limits (default: 1%)\nAlways confirm large transactions with user\n\nSee references/security.md for detailed security practices.\n\nDetailed References\nreferences/helius-api.md — Full Helius API reference\nreferences/security.md — Wallet security best practices\nreferences/jupiter.md — Jupiter swap integration\nCommon Token Addresses\nToken\tMint Address\nSOL\tSo11111111111111111111111111111111111111112 (wrapped)\nUSDC\tEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\nUSDT\tEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB\nBONK\tDezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263\nError Handling\n\nCommon errors and solutions:\n\nInsufficient SOL: Need SOL for rent + transaction fees\nToken account not found: Create ATA before sending tokens\nTransaction too large: Reduce instructions or use address lookup tables\nBlockhash expired: Retry with fresh blockhash"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/chattyClaw/solana-basics",
    "publisherUrl": "https://clawhub.ai/chattyClaw/solana-basics",
    "owner": "chattyClaw",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/solana-basics",
    "downloadUrl": "https://openagent3.xyz/downloads/solana-basics",
    "agentUrl": "https://openagent3.xyz/skills/solana-basics/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-basics/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-basics/agent.md"
  }
}