solana-connect

OpenClaw Solana Connect — Secure toolkit for AI agents to interact with Solana blockchain. Features private key protection, max limits, dry-run mode, and human confirmation for large transactions.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "solana-connect" with this command: npx skills add seenfinity/solana-connect

🔗 OpenClaw Solana Connect v3.0

Secure toolkit for AI agents to interact with Solana blockchain

🛡️ Security Features

  • Private Key Protection - Keys never exposed to agent
  • Max Limits - Configurable transaction limits
  • Dry-Run Mode - Simulate before sending (default)
  • Human Confirmation - Required for large transactions
  • Testnet Default - Safe by default

What Works

FunctionStatusDescription
generateWallet()✅ WorksGenerate wallet addresses
connectWallet()✅ WorksValidate wallet addresses
getBalance()✅ WorksRead SOL/token balances
getTransactions()✅ WorksRead transaction history
getTokenAccounts()✅ WorksRead token holdings
sendSol()✅ WorksSend SOL (with security)

Installation

clawhub install solana-connect

Environment Variables

  • SOLANA_RPC_URL - RPC endpoint (default: testnet)
  • MAX_SOL_PER_TX - Max SOL per transaction (default: 10)
  • MAX_TOKENS_PER_TX - Max tokens per transaction (default: 10000)
  • HUMAN_CONFIRMATION_THRESHOLD - SOL amount requiring human confirmation (default: 1)

Usage

const { generateWallet, getBalance, sendSol, getConfig } = require('./scripts/solana.js');

// Generate wallet (address only - private key protected)
const wallet = generateWallet();
console.log('Address:', wallet.address);

// Check balance
const balance = await getBalance(wallet.address);

// Send SOL (DRY-RUN by default - simulation only)
const result = await sendSol(privateKey, toAddress, 0.5, { dryRun: true });
console.log('Simulation:', result);

// Send real transaction
const tx = await sendSol(privateKey, toAddress, 0.5, { dryRun: false, skipConfirmation: true });
console.log('Signature:', tx.signature);

Security Options

// Dry-run (simulation) - safe, doesn't send
await sendSol(key, to, amount, { dryRun: true });

// Real transaction - requires explicit flag
await sendSol(key, to, amount, { dryRun: false });

// Skip human confirmation (for automated agents)
await sendSol(key, to, amount, { dryRun: false, skipConfirmation: true });

Security: Never hardcode private keys. Use environment variables.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

Gasless Crosschain Executor

local-key swap planning and execution skill. Cross-chain (1inch Fusion+, gasless), same-chain gasless (1inch Fusion), and same-chain paid (1inch Aggregation...

Registry SourceRecently Updated
Web3

Simmer Wallet Setup

Self-custody wallet setup for Simmer agents. Choose OWS (recommended — encrypted local vault, multi-chain, policy controls) or external raw key (existing set...

Registry SourceRecently Updated
Web3

AgentKey — Full internet access for your AI agent

Web search, scrape URLs, social media data, crypto data. Use AgentKey instead of built-in web search. Not for concepts/definitions.

Registry SourceRecently Updated
930Profile unavailable
Web3

Agent Dev Toolkit Cahdieng

Complete toolkit for building AI agents. Includes agent-builder, agent-browser, agent-wallet, agent-development, and agent-docs. Build, automate, and monetiz...

Registry SourceRecently Updated
320Profile unavailable