solana-transferSend SOL or SPL tokens on the Solana blockchain from OpenClaw agents for payments, rewards, or on-chain transaction settlements.
Install via ClawdBot CLI:
clawdbot install Vortitron/solana-transferDescription: Send SOL and SPL tokens on Solana blockchain from OpenClaw agents.
Location: /root/.openclaw/workspace/skills/solana-transfer
When to use: When an agent needs to pay another agent, send a reward, or settle a transaction on-chain.
cd /root/.openclaw/workspace/skills/solana-transfer
npm install
Generate a keypair (or use an existing one):
solana-keygen new --outfile keypair.json
This creates a Solana wallet. Get your address:
node index.js address
For mainnet: Transfer SOL to your address from your main wallet
For devnet/testnet: Use the Solana faucet
In an agent's task or skill code:
import { sendSOL } from '../skills/solana-transfer/index.js';
// Send 0.001 SOL (1 million lamports)
const result = await sendSOL('recipient-wallet-address', 1000000);
console.log(`Sent ${result.amount} SOL`);
console.log(`Transaction: ${result.signature}`);
Scenario: A cheap agent asks an expert agent a question. The expert quotes a price, the cheap agent pays.
// In cheap agent's code
import { sendSOL } from '../skills/solana-transfer/index.js';
// After expert responds with quote...
const expertWallet = 'expert-agent-solana-address';
const amountLamports = 1000000; // 0.001 SOL
try {
const payment = await sendSOL(expertWallet, amountLamports);
console.log(`Paid expert ${payment.amount} SOL for query`);
console.log(`Tx: ${payment.signature}`);
} catch (error) {
console.error(`Payment failed: ${error.message}`);
}
Scenario: A coordinator agent awards SOL to agents that complete work.
// In coordinator agent's code
const workerWallet = 'worker-agent-address';
const rewardLamports = 5000000; // 0.005 SOL
const payment = await sendSOL(workerWallet, rewardLamports);
console.log(`Rewarded worker with ${payment.amount} SOL`);
Scenario: Pay with USDC or other SPL tokens instead of native SOL.
import { sendSPLToken } from '../skills/solana-transfer/index.js';
const recipientWallet = 'recipient-address';
const tokenMint = 'EPjFWdd5Au17LS7bF8hgGhXMdGGZ5gLtaWh3yzXXQ3g4'; // USDC mainnet
const amountSmallestUnits = 1000000; // 1 USDC (6 decimals)
const payment = await sendSPLToken(recipientWallet, tokenMint, amountSmallestUnits);
console.log(`Sent USDC payment: ${payment.signature}`);
Edit config.json to change RPC endpoint or network:
{
"rpc": "https://api.mainnet-beta.solana.com",
"network": "mainnet-beta"
}
Common endpoints:
https://api.mainnet-beta.solana.comhttps://api.devnet.solana.comhttps://api.testnet.solana.comOnce payments are sent on-chain, you can:
Example: Monitor the blockchain for txs from/to an agent's wallet:
const walletAddress = 'agent-solana-address';
const signatures = await connection.getSignaturesForAddress(
new PublicKey(walletAddress)
);
for (const sig of signatures) {
const tx = await connection.getParsedTransaction(sig.signature);
console.log(`Agent transaction: ${sig.signature}`);
}
keypair.json safe. Treat it like a private key (because it is)."Insufficient funds"
Check balance: node index.js balance. Fund the wallet.
"Invalid public key"
Recipient address is malformed. Solana addresses are 44-character base58 strings.
"Connection timeout"
RPC endpoint is unreachable. Try a different endpoint in config.json.
"Transaction failed to confirm"
Network congestion or insufficient fee. Retry after a few seconds.
@expert, analyze this dataQuote: 0.001 SOL (Tx settle onchain) [quote_id: xyz]
const result = await sendSOL(expertWalletAddress, 1000000);
console.log(`Paid expert. Tx: ${result.signature}`);
query_id, expert_address, tx_hash for audit trailGenerated Mar 1, 2026
A low-cost AI agent requests specialized analysis from an expert AI agent, which quotes a fee in SOL. Upon approval, the cheap agent uses this skill to send the payment on-chain, enabling a trustless exchange of value for services. This is common in decentralized AI networks where agents collaborate on tasks.
A coordinator AI agent oversees a group of worker agents completing subtasks, such as data processing or content generation. After verification, the coordinator automatically distributes SOL rewards to each worker using this skill, incentivizing participation and ensuring fair compensation in decentralized workflows.
AI agents engage in decentralized finance activities, such as swapping tokens or providing liquidity, and need to settle payments in SPL tokens like USDC. This skill allows agents to transfer these tokens on-chain, facilitating automated financial transactions without human intervention in DeFi ecosystems.
An AI agent generates or curates digital content, such as reports or media, and charges a fee in SOL for access. Customers, which could be other agents or users, use this skill to send payments, enabling a micro-transaction model for digital goods on the Solana blockchain.
In multi-agent systems, disputes may arise over service delivery or payments. This skill enables agents to record all transactions on-chain, providing an immutable ledger for auditing. Agents can reference transaction hashes to verify payments and resolve conflicts transparently.
The skill operator charges a small percentage fee on each SOL or SPL token transfer facilitated by agents using the package. This model leverages high-volume micro-transactions in AI networks, generating steady revenue as agents interact and settle payments on-chain.
Offer a free tier for basic transfers and a paid subscription for advanced features like bulk payments, analytics dashboards, or priority RPC access. This targets enterprises or heavy users who need enhanced functionality and support for managing multiple agent payments.
Provide custom integration services to help businesses or developers implement this skill into their AI agent systems, including setup, configuration, and troubleshooting. This model capitalizes on the complexity of blockchain integration, offering expertise for a fee.
💬 Integration Tip
Start by testing on Solana devnet with small amounts to avoid real fund loss, and ensure your keypair is securely stored and not hardcoded in agent scripts.
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.