✓ Verified 💻 Development ✓ Enhanced Data

Solana Connect

OpenClaw Solana Connect — Secure toolkit for AI agents to interact with Solana blockchain.

Rating
3.9 (25 reviews)
Downloads
36,136 downloads
Version
1.0.0

Overview

OpenClaw Solana Connect — Secure toolkit for AI agents to interact with Solana blockchain.

Complete Documentation

View Source →

🔗 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

bash
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

javascript
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

javascript
// 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.

Installation

Terminal bash

openclaw install solana-connect
    
Copied!

💻Code Examples

clawhub install solana-connect

clawhub-install-solana-connect.txt
## 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
example.js
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);
example.js
// 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 });

Tags

#coding_agents-and-ides

Quick Info

Category Development
Model Claude 3.5
Complexity Multi-Agent
Author seenfinity
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install solana-connect