solana-basicsInteract 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.
Install via ClawdBot CLI:
clawdbot install chattyClaw/solana-basicsComprehensive Solana blockchain interaction using Helius infrastructure.
~/.config/solana-skill/config.json:{
"heliusApiKey": "your-api-key",
"network": "mainnet-beta"
}
import { createHelius } from 'helius-sdk';
const helius = createHelius({ apiKey: 'YOUR_KEY' });
const assets = await helius.getAssetsByOwner({
ownerAddress: 'WALLET_ADDRESS',
displayOptions: {
showFungible: true,
showNativeBalance: true
}
});
import { Connection, Keypair, SystemProgram, Transaction, sendAndConfirmTransaction, LAMPORTS_PER_SOL } from '@solana/web3.js';
const connection = new Connection('https://mainnet.helius-rpc.com/?api-key=YOUR_KEY');
const tx = new Transaction().add(
SystemProgram.transfer({
fromPubkey: sender.publicKey,
toPubkey: recipientPubkey,
lamports: amount * LAMPORTS_PER_SOL
})
);
await sendAndConfirmTransaction(connection, tx, [sender]);
// 1. Get quote
const quote = await fetch(`https://api.jup.ag/swap/v1/quote?inputMint=${inputMint}&outputMint=${outputMint}&amount=${amount}`);
// 2. Build swap transaction
const swap = await fetch('https://api.jup.ag/swap/v1/swap', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
quoteResponse: await quote.json(),
userPublicKey: wallet.publicKey.toString()
})
});
// 3. Sign and send
| Service | Base URL |
|---------|----------|
| Helius RPC | https://mainnet.helius-rpc.com/?api-key=KEY |
| Helius Sender | https://sender.helius-rpc.com/fast |
| Jupiter Quote | https://api.jup.ag/swap/v1/quote |
| Jupiter Swap | https://api.jup.ag/swap/v1/swap |
Critical rules:
See references/security.md for detailed security practices.
| Token | Mint Address |
|-------|-------------|
| SOL | So11111111111111111111111111111111111111112 (wrapped) |
| USDC | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
| USDT | Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB |
| BONK | DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263 |
Common errors and solutions:
Generated Mar 1, 2026
Investors can use this skill to automatically monitor their Solana wallet balances, including SOL and SPL tokens, and track portfolio valuation via DAS API. It enables real-time updates on assets and NFTs, helping users manage their crypto holdings without manual checks. This is ideal for individuals managing multiple wallets or tracking investment performance.
Traders can leverage the Jupiter integration to get swap quotes and execute token swaps on Solana with slippage protection. This facilitates quick and efficient trading between tokens like USDC, USDT, and BONK, supporting DeFi activities such as arbitrage or portfolio rebalancing. It reduces manual steps by automating transaction building and signing.
Businesses handling crypto transactions can use this skill to create and manage multiple wallets with encrypted key storage, ensuring secure operations. It supports sending SOL and SPL tokens, with features like priority fee estimation and transaction history for auditing. This helps companies streamline payments, manage funds, and enhance security compliance.
Auditors can set up address monitoring to watch for activity and receive transaction notifications, aiding in compliance and fraud detection. The skill provides human-readable transaction histories and balance checks, making it easier to audit Solana-based financial flows. This supports regulatory oversight and risk management in crypto operations.
Creators and platforms can use this skill to check NFT balances and manage compressed NFTs, facilitating operations in NFT marketplaces. It enables sending transactions for NFT sales or transfers, with error handling for common issues like insufficient SOL. This helps automate backend processes for minting, trading, and displaying digital assets.
Offer this skill as a paid API service where users pay a monthly fee for access to enhanced features like unlimited transactions, priority support, and advanced analytics. Revenue is generated through tiered subscription plans based on usage volume, such as number of API calls or wallet management capabilities. This model targets developers and businesses needing reliable Solana integration.
Generate revenue by charging a small commission on each transaction or swap executed through the skill, such as a percentage of the transaction value or a fixed fee per swap. This aligns with user activity, incentivizing high-volume usage while providing a free base service. It's suitable for DeFi platforms and traders who frequently perform swaps and transfers.
License the skill as a white-label solution for enterprises, such as banks or crypto exchanges, to integrate Solana functionality into their own applications. Revenue comes from one-time licensing fees or annual contracts, with customization options for specific business needs like enhanced security or reporting. This model leverages the skill's comprehensive capabilities for B2B clients.
š¬ Integration Tip
Ensure secure storage of Helius API keys and private keys using encrypted config files, and validate all addresses before transactions to prevent errors and enhance security.
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.
Real-time crypto risk intelligence; before and as things break. Two tools: Flare (15-min precursor detection, immediate alarms) and Core (60-min state synthesis, context assessment). Free access to the last analysis. No API key required. Upgrade to x402 for custom analysis.