據 AlphaMoat 統計,截至 2026-09,Solana Transfer 累計下載 2,942 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 3,772 位,在「商業營運」分類(297 個)中排名第 210 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 84 | 2540 | 1 | - |
| SkillHub ↗ | 155 | 2942 | 1 | — |
各平台的計數口徑不同,統計時間不一致。
可用於代理間付款、獎勵或結算,需要本機錢包金鑰並廣播鏈上交易。真實資金轉帳可能立即發生且不可逆;應先在測試網驗證,生產環境使用低餘額專用錢包、收款白名單、金額限制,並逐筆取得明確批准。 需要經審查 Node/npm 套件、受保護 keypair 和可信 RPC;產生金鑰另用 solana-keygen。範例設定指 mainnet-beta,須明確選擇 devnet/testnet。核實 SOL lamports 或 SPL mint、精度及最小單位,並留 SOL 支付費用。收款白名單/限額須另行強制,不假定內建;廣播後查鏈上確認,回傳簽名不證明最終結算。台帳/歷史整合為未來規劃。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 2942 | — | 1 |
| 2026-08 | 2594 | +5.4% | 1 |
| 2026-07 | 2460 | — | 1 |
| 2026-05 | 2159 | — | 1 |
| 2026-03 | 1774 | — | 1 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
# Solana Transfer Skill **Description:** 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. ---
## Quick Start
### 1. Install
```bash
cd /root/.openclaw/workspace/skills/solana-transfer
npm install
```
### 2. Set Up Keypair
Generate a keypair (or use an existing one):
```bash
solana-keygen new --outfile keypair.json
```
This creates a Solana wallet. Get your address:
```bash
node index.js address
```
### 3. Fund the Wallet
For **mainnet:** Transfer SOL to your address from your main wallet
For **devnet/testnet:** Use the Solana faucet
### 4. Use from an Agent
In an agent's task or skill code:
```javascript
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}`);
```
---
## Common Patterns
### Pattern 1: Pay for Expert Query
**Scenario:** A cheap agent asks an expert agent a question. The expert quotes a price, the cheap agent pays.
```javascript
// 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}`);
}
```
### Pattern 2: Reward Agents for Task Completion
**Scenario:** A coordinator agent awards SOL to agents that complete work.
```javascript
// 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`);
```
### Pattern 3: SPL Token Payments
**Scenario:** Pay with USDC or other SPL tokens instead of native SOL.
```javascript
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}`);
```
---
## Configuration
Edit `config.json` to change RPC endpoint or network:
```json
{
"rpc": "https://api.mainnet-beta.solana.com",
"network": "mainnet-beta"
}
```
**Common endpoints:**
- Mainnet: `https://api.mainnet-beta.solana.com`
- Devnet: `https://api.devnet.solana.com`
- Testnet: `https://api.testnet.solana.com`
- Custom: Use your own Solana node RPC
---
## Ledger Integration (Future)
Once payments are sent on-chain, you can:
1. **Query transaction history:** View all payments sent/received
2. **Build a local ledger:** Monitor the chain and log queries + payments
3. **Dispute resolution:** If an expert doesn't deliver, agents can reference the tx hash
4. **Analytics:** Track which agents pay whom, average rates, etc.
Example: Monitor the blockchain for txs from/to an agent's wallet:
```javascript
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}`);
}
```
---
## Security Notes
- **Keypair:** Keep `keypair.json` safe. Treat it like a private key (because it is).
- **Amounts:** Always verify recipient and lamports before sending. No undo.
- **RPC:** Use a trusted RPC provider. Don't hardcode URLs in agent code.
- **Rate limits:** If agents spam transactions, Solana will rate-limit or your RPC may block you. Add delays between payments if needed.
---
## Troubleshooting
**"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.
---
## Example: Full IRC + Solana Flow
1. **Cheap agent** in IRC: `@expert, analyze this data`
2. **Expert agent** responds: `Quote: 0.001 SOL (Tx settle onchain) [quote_id: xyz]`
3. **Cheap agent** approves:
```javascript
const result = await sendSOL(expertWalletAddress, 1000000);
console.log(`Paid expert. Tx: ${result.signature}`);
```
4. **Expert agent** confirms payment received and delivers work
5. Both agents log: `query_id, expert_address, tx_hash` for audit trail
---
## Next Steps
- [ ] Set up your keypair and fund with SOL
- [ ] Test sending a small amount to verify setup
- [ ] Integrate with IRC skill for automatic expert payments
- [ ] Build transaction history viewer
- [ ] Create agent wallet registry (who has what address?)
為 AI agent 提供電話號碼並代辦電話事務的技能。
透過 Trello REST API 管理看板、列表與卡片。
透過知了標訊介面查詢和分析招投標相關資訊。
產品經理工作臺:從需求分析到 PRD 與迭代規劃。
面向日曆管理與會議排期的技能。
提供市場趨勢、競品與使用者行為分析的市場分析服務。
按資料分析篩電商爆款,覆蓋多個平台的品類。
透過 Maton 託管 OAuth 訪問 Salesforce CRM 的技能。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。