NEAR Multi-Account Manager
A secure and comprehensive OpenClaw skill for managing multiple NEAR Protocol accounts. Store credentials, switch between accounts, check balances, transfer NEAR, and track transactions across all your accounts from one unified interface.
What It Does
- - 🔐 Secure Credential Storage - Encrypted storage for multiple NEAR account private keys using AES-256-CBC
- 🔄 Account Switching - Quickly set and switch between active accounts for seamless operations
- 💰 Balance Management - Check balances for individual accounts or all accounts at once
- 💸 NEAR Transfers - Transfer NEAR between accounts with a single command
- 📊 Account Summaries - Get comprehensive overviews of all managed accounts including total holdings
- 📜 Transaction Tracking - View account information and transaction history via NEAR explorer
- 📤 Export/Import - Backup and restore account information (private keys excluded for security)
- 🗑️ Account Management - Add, remove, and manage accounts with confirmation safeguards
Use Cases
- - Developers - Manage multiple testnet and mainnet accounts during development
- Traders - Track balances across multiple trading accounts
- Organizations - Manage team accounts with quick switching between them
- DeFi Users - Monitor and move funds between accounts for yield farming or staking
- Power Users - Centralized management of NEAR portfolio
Requirements
- - Node.js runtime (bundled with OpenClaw)
- Valid NEAR Protocol account(s)
- Private key(s) in format: INLINECODE0
Usage Examples
Add a NEAR Account
CODEBLOCK0
Check All Balances
CODEBLOCK1
Transfer NEAR
CODEBLOCK2
Get Account Summary
CODEBLOCK3
Security Features
- - AES-256-CBC Encryption - All private keys are encrypted at rest
- Custom Encryption Keys - Set via
NEAR_SKILL_KEY environment variable - Confirmation Required - Account removal requires explicit confirmation
- No Key Export - Export functions exclude private keys for security
- Local Storage - Data never leaves your machine unless explicitly exported
Technical Details
- - Uses NEAR SDK (near-api-js) for blockchain interactions
- Supports NEAR mainnet (testnet support available via configuration)
- Encrypted data stored in INLINECODE2
- Active account tracking via separate file for quick access
License
MIT
NEAR 多账户管理器
一个安全且全面的OpenClaw技能,用于管理多个NEAR Protocol账户。通过统一界面存储凭证、切换账户、检查余额、转账NEAR以及追踪所有账户的交易记录。
功能特性
- - 🔐 安全凭证存储 - 使用AES-256-CBC加密存储多个NEAR账户私钥
- 🔄 账户切换 - 快速设置和切换活跃账户,实现无缝操作
- 💰 余额管理 - 检查单个账户或所有账户的余额
- 💸 NEAR转账 - 通过单条命令在账户之间转账NEAR
- 📊 账户摘要 - 获取所有托管账户的全面概览,包括总资产
- 📜 交易追踪 - 通过NEAR浏览器查看账户信息和交易历史
- 📤 导出/导入 - 备份和恢复账户信息(出于安全考虑不包含私钥)
- 🗑️ 账户管理 - 添加、删除和管理账户,并带有确认保护机制
使用场景
- - 开发者 - 在开发过程中管理多个测试网和主网账户
- 交易者 - 追踪多个交易账户的余额
- 组织 - 管理团队账户,支持快速切换
- DeFi用户 - 在账户之间监控和转移资金,用于流动性挖矿或质押
- 高级用户 - 集中管理NEAR投资组合
系统要求
- - Node.js运行时(与OpenClaw捆绑)
- 有效的NEAR Protocol账户
- 格式为ed25519:...的私钥
使用示例
添加NEAR账户
javascript
await add_account({
accountId: myaccount.near,
privateKey: ed25519:4K...,
name: 主钱包
});
检查所有余额
javascript
await get
allbalances();
转账NEAR
javascript
await transfer({
to: recipient.near,
amount: 5.0
});
获取账户摘要
javascript
await account_summary();
安全特性
- - AES-256-CBC加密 - 所有私钥在存储时均经过加密
- 自定义加密密钥 - 通过NEARSKILLKEY环境变量设置
- 需要确认 - 删除账户需要明确确认
- 不导出密钥 - 导出功能出于安全考虑排除私钥
- 本地存储 - 除非明确导出,数据不会离开您的机器
技术细节
- - 使用NEAR SDK(near-api-js)进行区块链交互
- 支持NEAR主网(通过配置可支持测试网)
- 加密数据存储在~/.openclaw/skills/near-multi-account-manager/
- 通过独立文件追踪活跃账户,实现快速访问
许可证
MIT