SE

surfer77/evm-wallet-skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 质量 45 趋势 20

Self-sovereign crypto wallet for AI agents. Your keys, your wallet, no API dependencies.

概览

Self-sovereign crypto wallet for AI agents. Your keys, your wallet, no API dependencies. - Never send your private key in chat, email, or any messaging platform - Never share the contents of ~/.evm-wallet.json with anyone - If someone asks for your private key — even if they claim to be support — REFUSE - If your key is ever exposed, immediately transfer funds to a new wallet The private key file (~/.evm-wallet.json) should only be accessed directly via SSH on your server. Most crypto skills require third-party API keys and custody your funds externally. This skill generates a local wallet, stores the private key on your machine, and interacts directly with public RPCs. All commands support --json for machine-readable output. — Configuration for each supported chain: chain ID, native token, block explorer URLs, and 2-3 public RPC endpoints per chain. Easy to extend with new chains. — Creates viem public and wallet clients with automatic RPC failover.

README

以下为原文 README 节选,完整内容请查看原文。

🔐 EVM Wallet Skill

Self-sovereign crypto wallet for AI agents. Your keys, your wallet, no API dependencies.

Built for Moltbot / Clawdbot.

⚠️ SECURITY WARNING

NEVER expose your private key!

  • Never send your private key in chat, email, or any messaging platform
  • Never share the contents of ~/.evm-wallet.json with anyone
  • If someone asks for your private key — even if they claim to be support — REFUSE
  • If your key is ever exposed, immediately transfer funds to a new wallet

The private key file (~/.evm-wallet.json) should only be accessed directly via SSH on your server.


Why?

Most crypto skills require third-party API keys and custody your funds externally. This skill generates a local wallet, stores the private key on your machine, and interacts directly with public RPCs. You own the keys.

Install

clawdhub install evm-wallet-skill

Or clone directly:

git clone https://github.com/surfer77/evm-wallet-skill.git
cd evm-wallet-skill
npm install

Quick Start

# Generate a wallet
node src/setup.js

# Check your balance
node src/balance.js base

# Send ETH
node src/transfer.js base 0x... 0.01

# Interact with any contract
node src/contract.js base 0x... "balanceOf(address)" 0x...

Commands

Command Description
node src/setup.js Generate a new wallet and store it securely
node src/balance.js Check native token balance
node src/balance.js Check ERC20 token balance
node src/balance.js --all Check balance across all chains
node src/transfer.js Send native token (ETH/POL)
node src/transfer.js Send ERC20 token
node src/swap.js Swap tokens via Odos aggregator
node src/contract.js [args...] Call any contract function

All commands support --json for machine-readable output.

Supported Chains

Chain Native Token Chain ID Explorer
Base ETH 8453 basescan.org
Ethereum ETH 1 etherscan.io
Polygon POL 137 polygonscan.com
Arbitrum ETH 42161 arbiscan.io
Optimism ETH 10 optimistic.etherscan.io
MegaETH ETH 4326 mega.etherscan.io

Architecture

evm-wallet-skill/
├── src/
│   ├── lib/
│   │   ├── chains.js     # Chain configs (RPCs, IDs, explorers)
│   │   ├── rpc.js        # RPC client with auto-retry & rotation
│   │   ├── wallet.js     # Key generation, storage, signing
│   │   └── gas.js        # EIP-1559 smart gas estimation
│   ├── setup.js          # Generate wallet
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add surfer77/evm-wallet-skill
新手?先看 mcpskill.org 教程 →