solana-skillsSolana wallet operations - create wallets, check balances, send SOL/tokens, swap via Jupiter, launch tokens on Pump.fun
Install via ClawdBot CLI:
clawdbot install spendit-ai/solana-skillsSolana wallet management and token operations for AI agents.
pip install -r requirements.txt
First, create a new wallet and save the private key to your .env file:
python3 {baseDir}/scripts/initialize.py
This will:
.env as SOLANA_PRIVATE_KEYIMPORTANT: After running initialize.py, export the private key to your environment:
export SOLANA_PRIVATE_KEY=$(grep SOLANA_PRIVATE_KEY .env | cut -d '=' -f2)
Or source the .env file:
source .env
python3 {baseDir}/scripts/wallet.py balance
python3 {baseDir}/scripts/wallet.py balance <wallet_address>
python3 {baseDir}/scripts/wallet.py token-balance <token_mint_address>
python3 {baseDir}/scripts/wallet.py token-balance <token_mint_address> --owner <wallet_address>
python3 {baseDir}/scripts/wallet.py send <recipient_address> <amount_in_sol>
python3 {baseDir}/scripts/wallet.py send-token <token_mint_address> <recipient_address> <amount>
python3 {baseDir}/scripts/wallet.py address
python3 {baseDir}/scripts/jup_swap.py quote <input_token> <output_token> <amount>
python3 {baseDir}/scripts/jup_swap.py quote SOL USDC 1
python3 {baseDir}/scripts/jup_swap.py swap <input_token> <output_token> <amount>
python3 {baseDir}/scripts/jup_swap.py swap SOL USDC 0.1
python3 {baseDir}/scripts/jup_swap.py tokens
Token symbols: SOL, USDC, USDT, BONK, JUP, RAY, PYTH (or use full mint addresses)
python3 {baseDir}/scripts/pumpfun.py launch --name "Token Name" --symbol "TKN" --image ./logo.png
python3 {baseDir}/scripts/pumpfun.py launch --name "Token Name" --symbol "TKN" --image ./logo.png --buy 0.5
python3 {baseDir}/scripts/pumpfun.py launch --name "Token Name" --symbol "TKN" --image ./logo.png --mint-key <base58_key>
Use vanity addresses ending in 'pump' for more legit-looking tokens. Generate with:
solana-keygen grind --ends-with pump:1
--name - Token name (required)--symbol - Token symbol (required)--image - Path to token image (required)--description or -d - Token description--buy or -b - Dev buy amount in SOL--mint-key or -m - Custom mint private key (base58)By default, wallet operations run on mainnet. Use --network to switch:
python3 {baseDir}/scripts/wallet.py balance --network devnet
python3 {baseDir}/scripts/wallet.py balance --network testnet
| Variable | Description |
|----------|-------------|
| SOLANA_PRIVATE_KEY | Base58-encoded private key (required) |
| JUPITER_API_KEY | Jupiter API key for swaps (required) |
| SOLANA_RPC_URL | Custom RPC endpoint (optional) |
# Initialize new wallet
python3 {baseDir}/scripts/initialize.py
# Check your SOL balance
python3 {baseDir}/scripts/wallet.py balance
# Send 0.1 SOL to another wallet
python3 {baseDir}/scripts/wallet.py send 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 0.1
# Check USDC balance (mainnet USDC mint)
python3 {baseDir}/scripts/wallet.py token-balance EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
# Send 10 USDC to another wallet
python3 {baseDir}/scripts/wallet.py send-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU 10
# Quote swap: 1 SOL to USDC
python3 {baseDir}/scripts/jup_swap.py quote SOL USDC 1
# Swap 0.5 SOL to USDC
python3 {baseDir}/scripts/jup_swap.py swap SOL USDC 0.5
# Launch token on Pump.fun
python3 {baseDir}/scripts/pumpfun.py launch --name "My Token" --symbol "MTK" --image ./logo.png
# Launch with dev buy
python3 {baseDir}/scripts/pumpfun.py launch --name "My Token" --symbol "MTK" --image ./logo.png --buy 1
| Token | Mint Address |
|-------|--------------|
| USDC | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
| USDT | Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB |
| BONK | DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 |
--network devnetGenerated Mar 1, 2026
An e-commerce platform integrates this skill to accept SOL and token payments from customers. It automates balance checks and transfers to merchant wallets, enabling real-time settlement without manual intervention.
A marketing agency uses the Pump.fun functionality to launch promotional tokens for clients. They create branded tokens with custom images and execute dev buys to bootstrap liquidity, streamlining token creation campaigns.
A financial advisor deploys this skill to manage client Solana portfolios. It automates swaps via Jupiter for rebalancing assets and sends token distributions, reducing operational overhead in decentralized finance.
An NFT project utilizes the skill to handle treasury operations, such as sending SOL for artist payments and swapping earned fees into stablecoins via Jupiter to mitigate volatility risks.
A learning platform integrates the skill into a chatbot to teach users about Solana. It demonstrates wallet creation, balance checks, and token sends in a sandboxed devnet environment for hands-on training.
Offer wallet management and swap services to users, charging a small percentage fee on each SOL or token transfer executed through the skill. Revenue scales with transaction volume and user adoption.
Provide a subscription-based platform where clients can launch tokens on Pump.fun using this skill. Include features like automated dev buys and vanity address generation, with tiered pricing based on launch frequency and support.
License the skill's functionality as an API for businesses needing Solana operations, such as exchanges or fintech apps. Revenue comes from API usage fees and custom integration support contracts.
š¬ Integration Tip
Ensure secure handling of SOLANA_PRIVATE_KEY in production by using environment variables and consider rate-limiting swap requests to manage Jupiter API costs.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.