← 返回
AI智能 中文

Agent Wallet

Multi-chain wallet management for AI agents. Create wallets, check balances, transfer tokens (USDC/native), and bridge cross-chain. Use when agents need to send/receive payments, check funds, or manage crypto wallets. Supports Solana, Base, and Ethereum. Trigger phrases include "create wallet", "check balance", "send USDC", "transfer", "my addresses", "wallet status".
AI代理多链钱包管理。支持创建钱包、查余额、转账(USDC/原生代币)及跨链桥接。适用于收付款、查资金或管理加密钱包场景。支持Solana、Base和以太坊。触发词:“创建钱包”、“查余额”、“发USDC”、“转账”、“我的地址”、“钱包状态”。
voltagemonke
AI智能 clawhub v0.1.0 1 版本 99858.7 Key: 无需
★ 0
Stars
📥 1,413
下载
💾 5
安装
1
版本
#latest

概述

AgentWallet

Multi-chain wallet skill for AI agents. One seed phrase, all chains.

Quick Reference

CommandExample
------------------
Create wallet"Create a new wallet"
Show addresses"Show my addresses" / "What's my wallet?"
Check balance"Check my balance" / "How much USDC do I have?"
Transfer"Send 10 USDC to 0x..." / "Transfer 5 SOL to ..."
Bridge"Bridge 10 USDC from Base to Solana"
Chain info"What chains are supported?"

Setup

New Wallet

User: "Create a new wallet"

Generates BIP-39 seed phrase, derives addresses for all chains. Shows seed ONCE with security warning.

Import Existing Wallet

User: "Import my wallet"

Response: "Add your seed phrase to .env as WALLET_SEED_PHRASE, then say 'Show my addresses' to verify."

No seed phrases in chat for imports - security first.

Environment

# Required for wallet operations
WALLET_SEED_PHRASE="your twelve word seed phrase goes here"

# Optional
NETWORK=testnet          # testnet (default) or mainnet
SOLANA_RPC=              # Custom Solana RPC (defaults to public)
BASE_RPC=                # Custom Base RPC (defaults to public)
ETH_RPC=                 # Custom Ethereum RPC (defaults to public)

Commands

Create Wallet

Run: node scripts/wallet.js create

Output format:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔐 NEW WALLET GENERATED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚠️  CRITICAL: Save this seed phrase securely!
    It will NOT be shown again.
    Anyone with this phrase can access your funds.

Seed Phrase:
┌────────────────────────────────────────────┐
│ word1 word2 word3 word4 word5 word6        │
│ word7 word8 word9 word10 word11 word12     │
└────────────────────────────────────────────┘

Your Addresses:
├─ Solana:   7xK9...mP4q
├─ Base:     0x7a3B...4f2E
└─ Ethereum: 0x7a3B...4f2E (same as Base)

Add to .env:
WALLET_SEED_PHRASE="word1 word2 word3 ..."

Network: TESTNET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Show Addresses

Run: node scripts/wallet.js addresses

Shows derived addresses without exposing seed.

Check Balance

Run: node scripts/wallet.js balance [chain]

  • node scripts/wallet.js balance - All chains
  • node scripts/wallet.js balance solana - Solana only
  • node scripts/wallet.js balance base - Base only

Output includes native token + USDC balance per chain.

Transfer

Run: node scripts/wallet.js transfer

Examples:

  • node scripts/wallet.js transfer solana USDC 10 7xK9fR2...
  • node scripts/wallet.js transfer base ETH 0.01 0x7a3B...
  • node scripts/wallet.js transfer solana SOL 0.5 7xK9fR2...

Supported tokens per chain:

  • Solana: SOL, USDC
  • Base: ETH, USDC
  • Ethereum: ETH, USDC

Bridge (Cross-Chain)

Run: node scripts/wallet.js bridge

Bridges USDC between chains using Circle CCTP V2.

Examples:

  • node scripts/wallet.js bridge base solana 10 - Bridge 10 USDC from Base to Solana
  • node scripts/wallet.js bridge ethereum base 50 - Bridge 50 USDC from Ethereum to Base
  • node scripts/wallet.js bridge solana ethereum 25 - Bridge 25 USDC from Solana to Ethereum

Note: Bridging takes 1-5 minutes (burn → attestation → mint). Requires USDC on source chain plus native tokens for gas.

Chain Info

Run: node scripts/wallet.js chains

Lists supported chains, networks, and USDC contract addresses.

Derivation Paths

All chains derive from single BIP-39 seed:

ChainPathStandard
-----------------------
Solanam/44'/501'/0'/0'Solana/Phantom
EVM (Base/Eth)m/44'/60'/0'/0/0BIP-44 Ethereum

EVM chains share the same address (same derivation path).

Security Model

  • One seed per agent - Each agent instance isolated
  • Seed shown once - Only at creation, never logged
  • Memory only - Private keys derived on-demand, never persisted
  • No chat import - Seeds added via .env only (except generation)

Error Handling

ErrorCauseFix
-------------------
"WALLET_SEED_PHRASE not set"Missing env varAdd seed to .env
"Invalid seed phrase"Wrong formatMust be 12 or 24 words
"Insufficient balance"Not enough fundsCheck balance first
"Invalid address"Wrong formatVerify recipient address

Chain References

For RPC endpoints, USDC addresses, and chain-specific details, see references/chains.md.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 01:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,424
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,232
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,164