🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

moonfun_sdk

by @moonnfunofficial

Python SDK for BSC enabling creation of AI-generated Meme tokens with stable minting and experimental token trading (buy/sell) features.

Versionv1.0.6
πŸ’‘ Examples

import os
from moonfun_sdk import MoonfunSDK

Initialize with private key

sdk = MoonfunSDK(private_key=os.getenv('PRIVATE_KEY'))

Create Meme token

result = sdk.create_meme(prompt="A happy cat celebrating")

print(f"Token: {result['token_address']}") print(f"View: https://moonn.fun/detail?address={result['token_address']}")

βš™οΈ Configuration

Default Configuration

SDK comes pre-configured with hosted services:

  • Image API: Hosted service for AI generation
  • Platform: https://moonn.fun
  • BSC RPC: Public BSC dataseed node
  • No additional configuration needed for basic usage.

    Custom Configuration

    sdk = MoonfunSDK(
        private_key="0x...",
        image_api_url="https://custom-api.com",     # Optional
        platform_url="https://moonn.fun",           # Default
        rpc_url="https://bsc-dataseed.bnbchain.org" # Default
    )
    

    Environment Variables

    Supported environment variables:

  • PRIVATE_KEY (required): Ethereum private key
  • MOONFUN_IMAGE_API_URL (optional): Custom image API endpoint
  • πŸ“‹ Tips & Best Practices

    # βœ… Use environment variables
    sdk = MoonfunSDK(private_key=os.getenv('PRIVATE_KEY'))

    βœ… Use dedicated wallets

    Create new wallet for SDK operations only

    ❌ Never hardcode keys

    sdk = MoonfunSDK(private_key="0x123...") # Don't do this

    View on ClawHub
    TERMINAL
    clawhub install moonfunsdk

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’