{
  "schemaVersion": "1.0",
  "item": {
    "slug": "moonfunsdk",
    "name": "moonfun_sdk",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/moonnfunOfficial/moonfunsdk",
    "canonicalUrl": "https://clawhub.ai/moonnfunOfficial/moonfunsdk",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/moonfunsdk",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=moonfunsdk",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "PACKAGE_MANIFEST.md",
      "README.md",
      "SKILL.md",
      "UPLOAD_GUIDE.md",
      "python/.gitignore",
      "python/CHANGELOG.md"
    ],
    "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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "moonfunsdk",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T01:50:25.719Z",
      "expiresAt": "2026-05-12T01:50:25.719Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=moonfunsdk",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=moonfunsdk",
        "contentDisposition": "attachment; filename=\"moonfunsdk-1.0.6.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "moonfunsdk"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/moonfunsdk"
    },
    "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/moonfunsdk",
    "agentPageUrl": "https://openagent3.xyz/skills/moonfunsdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/moonfunsdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/moonfunsdk/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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "MoonfunSDK - BSC Meme Token Creation Tool",
        "body": "Professional Python SDK for creating and trading Meme tokens on Binance Smart Chain with AI-powered image generation."
      },
      {
        "title": "Overview",
        "body": "MoonfunSDK enables automated creation of Meme tokens with AI-generated images on BSC. The SDK handles image generation, platform integration, and blockchain transactions through a simple Python interface."
      },
      {
        "title": "Installation",
        "body": "pip install moonfun-sdk\n\nRequirements:\n\nPython 3.8+\nBNB balance ≥ 0.011 (0.01 creation fee + gas)"
      },
      {
        "title": "Quick Start",
        "body": "import os\nfrom moonfun_sdk import MoonfunSDK\n\n# Initialize with private key\nsdk = MoonfunSDK(private_key=os.getenv('PRIVATE_KEY'))\n\n# Create Meme token\nresult = sdk.create_meme(prompt=\"A happy cat celebrating\")\n\nprint(f\"Token: {result['token_address']}\")\nprint(f\"View: https://moonn.fun/detail?address={result['token_address']}\")"
      },
      {
        "title": "Token Creation (Stable)",
        "body": "AI-generated meme images\nAutomatic title and symbol generation\nOne-function deployment to BSC\nIntegrated with MoonnFun platform"
      },
      {
        "title": "Token Trading (Experimental)",
        "body": "Buy tokens with BNB\nSell tokens for BNB\nAutomatic slippage handling\nBalance queries"
      },
      {
        "title": "create_meme()",
        "body": "sdk.create_meme(\n    prompt: str,              # Meme description\n    symbol: str = None,       # Auto-generated if None\n    description: str = None   # Auto-generated if None\n) -> dict\n\nReturns:\n\ntoken_address: Contract address\ntoken_id: Platform token ID\ntx_hash: Creation transaction hash\nname: Token name\nsymbol: Token symbol\nimage_url: Hosted image URL"
      },
      {
        "title": "buy_token() / sell_token()",
        "body": "sdk.buy_token(token_address: str, bnb_amount: float, slippage: float = 0.1)\nsdk.sell_token(token_address: str, amount: int, slippage: float = 0.1)"
      },
      {
        "title": "Balance Queries",
        "body": "sdk.get_balance()                           # Returns BNB balance\nsdk.get_token_balance(token_address: str)   # Returns token balance (wei)"
      },
      {
        "title": "Default Configuration",
        "body": "SDK comes pre-configured with hosted services:\n\nImage API: Hosted service for AI generation\nPlatform: https://moonn.fun\nBSC RPC: Public BSC dataseed node\n\nNo additional configuration needed for basic usage."
      },
      {
        "title": "Custom Configuration",
        "body": "sdk = MoonfunSDK(\n    private_key=\"0x...\",\n    image_api_url=\"https://custom-api.com\",     # Optional\n    platform_url=\"https://moonn.fun\",           # Default\n    rpc_url=\"https://bsc-dataseed.bnbchain.org\" # Default\n)"
      },
      {
        "title": "Environment Variables",
        "body": "Supported environment variables:\n\nPRIVATE_KEY (required): Ethereum private key\nMOONFUN_IMAGE_API_URL (optional): Custom image API endpoint"
      },
      {
        "title": "Private Key Handling",
        "body": "Private keys are used locally only for:\n\nTransaction signing (via eth_account library)\nMessage signing for authentication\n\nPrivate keys are NEVER:\n\nTransmitted over network\nStored to disk\nLogged to console"
      },
      {
        "title": "Code Verification",
        "body": "Users can audit private key usage in source code:\n\nauth.py: Local signing with eth_account\nimage_api.py: Sends only signature + address\nplatform.py: Sends only signature + address\nblockchain.py: Local transaction signing via web3.py"
      },
      {
        "title": "Best Practices",
        "body": "# ✅ Use environment variables\nsdk = MoonfunSDK(private_key=os.getenv('PRIVATE_KEY'))\n\n# ✅ Use dedicated wallets\n# Create new wallet for SDK operations only\n\n# ❌ Never hardcode keys\nsdk = MoonfunSDK(private_key=\"0x123...\")  # Don't do this"
      },
      {
        "title": "BSC Mainnet",
        "body": "Chain ID: 56\nNative Token: BNB\nExplorer: https://bscscan.com\nRPC: https://bsc-dataseed.bnbchain.org"
      },
      {
        "title": "Smart Contracts",
        "body": "Router: 0x953C65358a8666617C66327cb18AD02126b2AAA5\nWBNB: 0xBB4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n\nAll addresses are public and verifiable on BSCScan."
      },
      {
        "title": "Gas Costs",
        "body": "Token creation: ~0.011 BNB (0.01 fee + 0.001 gas)\nBuy/sell: ~0.0005-0.001 BNB per transaction"
      },
      {
        "title": "Error Handling",
        "body": "from moonfun_sdk import (\n    InsufficientBalanceError,\n    AuthenticationError,\n    TransactionFailedError\n)\n\ntry:\n    result = sdk.create_meme(\"A funny cat\")\nexcept InsufficientBalanceError:\n    print(\"Need more BNB (minimum 0.011)\")\nexcept AuthenticationError:\n    print(\"Signature verification failed\")\nexcept TransactionFailedError:\n    print(\"Blockchain transaction failed\")"
      },
      {
        "title": "Hosted Services",
        "body": "The SDK uses these services:\n\nImage Generation API\n\nSecured with cryptographic signatures\nBalance-gated (minimum 0.011 BNB)\nTimestamp-bound requests\nDefault endpoint: http://moonfun.site\nUsers can deploy custom instances\n\n\n\nMoonnFun Platform\n\nPublic token launchpad\nMetadata and image storage\nURL: https://moonn.fun\n\n\n\nBSC Network\n\nPublic blockchain\nDecentralized infrastructure"
      },
      {
        "title": "Dependencies",
        "body": "Core dependencies:\n\nweb3>=6.0.0 - Ethereum interaction\neth-account>=0.8.0 - Private key management\nrequests>=2.28.0 - HTTP client\nhttpx>=0.24.0 - Async HTTP client\n\nAll dependencies are widely used and audited libraries."
      },
      {
        "title": "Building from Source",
        "body": "# Clone repository\ngit clone <repository-url>\ncd moonfun-sdk/python\n\n# Review source code\ncat moonfun_sdk/auth.py        # Private key handling\ncat moonfun_sdk/image_api.py   # API requests\ncat moonfun_sdk/platform.py    # Platform integration\n\n# Install from source\npip install -e ."
      },
      {
        "title": "v1.0.6 (Current)",
        "body": "Token tag set to \"Ai Agent\"\nImproved categorization"
      },
      {
        "title": "v1.0.5",
        "body": "Enhanced authentication mechanism\nOptimized login flow"
      },
      {
        "title": "v1.0.4",
        "body": "Support for low-liquidity token selling\nTrading marked as experimental"
      },
      {
        "title": "Troubleshooting",
        "body": "IssueSolutionInsufficientBalanceErrorAdd BNB (minimum 0.011)AuthenticationErrorCheck private key format (needs 0x prefix)TransactionFailedErrorIncrease slippage or check gasRPCConnectionErrorTry different RPC endpoint"
      },
      {
        "title": "Resources",
        "body": "Platform: https://moonn.fun\nBSC Explorer: https://bscscan.com\nDocumentation: See README.md\nSecurity Guide: See SECURITY.md"
      },
      {
        "title": "License",
        "body": "MIT License"
      },
      {
        "title": "Disclaimer",
        "body": "This SDK interacts with blockchain and requires real BNB. Users should:\n\nTest with small amounts first\nUse dedicated wallets\nReview source code\nUnderstand blockchain risks\n\nTrading features are experimental and may have issues with new/low-liquidity tokens."
      }
    ],
    "body": "MoonfunSDK - BSC Meme Token Creation Tool\n\nProfessional Python SDK for creating and trading Meme tokens on Binance Smart Chain with AI-powered image generation.\n\nOverview\n\nMoonfunSDK enables automated creation of Meme tokens with AI-generated images on BSC. The SDK handles image generation, platform integration, and blockchain transactions through a simple Python interface.\n\nInstallation\npip install moonfun-sdk\n\n\nRequirements:\n\nPython 3.8+\nBNB balance ≥ 0.011 (0.01 creation fee + gas)\nQuick Start\nimport os\nfrom moonfun_sdk import MoonfunSDK\n\n# Initialize with private key\nsdk = MoonfunSDK(private_key=os.getenv('PRIVATE_KEY'))\n\n# Create Meme token\nresult = sdk.create_meme(prompt=\"A happy cat celebrating\")\n\nprint(f\"Token: {result['token_address']}\")\nprint(f\"View: https://moonn.fun/detail?address={result['token_address']}\")\n\nCore Features\nToken Creation (Stable)\nAI-generated meme images\nAutomatic title and symbol generation\nOne-function deployment to BSC\nIntegrated with MoonnFun platform\nToken Trading (Experimental)\nBuy tokens with BNB\nSell tokens for BNB\nAutomatic slippage handling\nBalance queries\nAPI Methods\ncreate_meme()\nsdk.create_meme(\n    prompt: str,              # Meme description\n    symbol: str = None,       # Auto-generated if None\n    description: str = None   # Auto-generated if None\n) -> dict\n\n\nReturns:\n\ntoken_address: Contract address\ntoken_id: Platform token ID\ntx_hash: Creation transaction hash\nname: Token name\nsymbol: Token symbol\nimage_url: Hosted image URL\nbuy_token() / sell_token()\nsdk.buy_token(token_address: str, bnb_amount: float, slippage: float = 0.1)\nsdk.sell_token(token_address: str, amount: int, slippage: float = 0.1)\n\nBalance Queries\nsdk.get_balance()                           # Returns BNB balance\nsdk.get_token_balance(token_address: str)   # Returns token balance (wei)\n\nConfiguration\nDefault Configuration\n\nSDK comes pre-configured with hosted services:\n\nImage API: Hosted service for AI generation\nPlatform: https://moonn.fun\nBSC RPC: Public BSC dataseed node\n\nNo additional configuration needed for basic usage.\n\nCustom Configuration\nsdk = MoonfunSDK(\n    private_key=\"0x...\",\n    image_api_url=\"https://custom-api.com\",     # Optional\n    platform_url=\"https://moonn.fun\",           # Default\n    rpc_url=\"https://bsc-dataseed.bnbchain.org\" # Default\n)\n\nEnvironment Variables\n\nSupported environment variables:\n\nPRIVATE_KEY (required): Ethereum private key\nMOONFUN_IMAGE_API_URL (optional): Custom image API endpoint\nSecurity\nPrivate Key Handling\n\nPrivate keys are used locally only for:\n\nTransaction signing (via eth_account library)\nMessage signing for authentication\n\nPrivate keys are NEVER:\n\nTransmitted over network\nStored to disk\nLogged to console\nCode Verification\n\nUsers can audit private key usage in source code:\n\nauth.py: Local signing with eth_account\nimage_api.py: Sends only signature + address\nplatform.py: Sends only signature + address\nblockchain.py: Local transaction signing via web3.py\nBest Practices\n# ✅ Use environment variables\nsdk = MoonfunSDK(private_key=os.getenv('PRIVATE_KEY'))\n\n# ✅ Use dedicated wallets\n# Create new wallet for SDK operations only\n\n# ❌ Never hardcode keys\nsdk = MoonfunSDK(private_key=\"0x123...\")  # Don't do this\n\nNetwork Details\nBSC Mainnet\nChain ID: 56\nNative Token: BNB\nExplorer: https://bscscan.com\nRPC: https://bsc-dataseed.bnbchain.org\nSmart Contracts\nRouter: 0x953C65358a8666617C66327cb18AD02126b2AAA5\nWBNB: 0xBB4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n\nAll addresses are public and verifiable on BSCScan.\n\nGas Costs\nToken creation: ~0.011 BNB (0.01 fee + 0.001 gas)\nBuy/sell: ~0.0005-0.001 BNB per transaction\nError Handling\nfrom moonfun_sdk import (\n    InsufficientBalanceError,\n    AuthenticationError,\n    TransactionFailedError\n)\n\ntry:\n    result = sdk.create_meme(\"A funny cat\")\nexcept InsufficientBalanceError:\n    print(\"Need more BNB (minimum 0.011)\")\nexcept AuthenticationError:\n    print(\"Signature verification failed\")\nexcept TransactionFailedError:\n    print(\"Blockchain transaction failed\")\n\nHosted Services\n\nThe SDK uses these services:\n\nImage Generation API\n\nSecured with cryptographic signatures\nBalance-gated (minimum 0.011 BNB)\nTimestamp-bound requests\nDefault endpoint: http://moonfun.site\nUsers can deploy custom instances\n\nMoonnFun Platform\n\nPublic token launchpad\nMetadata and image storage\nURL: https://moonn.fun\n\nBSC Network\n\nPublic blockchain\nDecentralized infrastructure\nDependencies\n\nCore dependencies:\n\nweb3>=6.0.0 - Ethereum interaction\neth-account>=0.8.0 - Private key management\nrequests>=2.28.0 - HTTP client\nhttpx>=0.24.0 - Async HTTP client\n\nAll dependencies are widely used and audited libraries.\n\nBuilding from Source\n# Clone repository\ngit clone <repository-url>\ncd moonfun-sdk/python\n\n# Review source code\ncat moonfun_sdk/auth.py        # Private key handling\ncat moonfun_sdk/image_api.py   # API requests\ncat moonfun_sdk/platform.py    # Platform integration\n\n# Install from source\npip install -e .\n\nChangelog\nv1.0.6 (Current)\nToken tag set to \"Ai Agent\"\nImproved categorization\nv1.0.5\nEnhanced authentication mechanism\nOptimized login flow\nv1.0.4\nSupport for low-liquidity token selling\nTrading marked as experimental\nTroubleshooting\nIssue\tSolution\nInsufficientBalanceError\tAdd BNB (minimum 0.011)\nAuthenticationError\tCheck private key format (needs 0x prefix)\nTransactionFailedError\tIncrease slippage or check gas\nRPCConnectionError\tTry different RPC endpoint\nResources\nPlatform: https://moonn.fun\nBSC Explorer: https://bscscan.com\nDocumentation: See README.md\nSecurity Guide: See SECURITY.md\nLicense\n\nMIT License\n\nDisclaimer\n\nThis SDK interacts with blockchain and requires real BNB. Users should:\n\nTest with small amounts first\nUse dedicated wallets\nReview source code\nUnderstand blockchain risks\n\nTrading features are experimental and may have issues with new/low-liquidity tokens."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/moonnfunOfficial/moonfunsdk",
    "publisherUrl": "https://clawhub.ai/moonnfunOfficial/moonfunsdk",
    "owner": "moonnfunOfficial",
    "version": "1.0.6",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/moonfunsdk",
    "downloadUrl": "https://openagent3.xyz/downloads/moonfunsdk",
    "agentUrl": "https://openagent3.xyz/skills/moonfunsdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/moonfunsdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/moonfunsdk/agent.md"
  }
}