← 返回 Skills 市场
perasyudha

web3-ops

作者 perasyudha · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ pending
17
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install web3-ops
功能描述
Perform EVM Web3 on-chain operations such as checking addresses, scanning portfolios, transferring assets, swapping/bridging tokens, and minting NFTs.
使用说明 (SKILL.md)

\r

Secure AI-Native Web3 Operational Skill\r

\r This skill allows the OpenClaw AI agent to interface with EVM blockchains (Ethereum, Arbitrum, Base, Optimism, Polygon, BNB Chain, Sonic, Sepolia, etc.) using a local Node.js CLI utility under a strict Human-in-the-Loop safety model.\r \r \r

Global Options\r

\r These flags can be appended to any command:\r

  • --json: Silences human logs and outputs strictly JSON to stdout (highly recommended for AI agent parsing).\r
  • --rpc \x3Curl>: Overrides default node RPC with a custom RPC endpoint (useful for testnets or private nodes).\r
  • --simulate: Simulates the transaction (dry run) using gas estimation and call simulation. Prevents sending failing transactions and calculates gas fees.\r \r

CLI Commands & Arguments\r

\r All commands are run using Node.js inside the skill directory:\r node skills/web3-ops/index.js \x3Ccommand> [arguments]\r \r

1. Get Wallet Address\r

Get your configured wallet address.\r

  • Usage: node skills/web3-ops/index.js address [--json]\r \r

2. Check Specific Balance\r

Check native coin (ETH, MATIC, BNB, S) or a specific ERC-20 token balance using symbol or contract address.\r

  • Native Coin: node skills/web3-ops/index.js balance --chain \x3Cchain> [--json]\r
  • ERC-20 Token: node skills/web3-ops/index.js balance --chain \x3Cchain> --token \x3Csymbol_or_address> [--json]\r
  • Example: node skills/web3-ops/index.js balance --chain base --token AERO\r \r

3. Scan Portfolio (New)\r

Scan and list all tokens with a positive balance in your wallet. If no chain is specified, it will scan all supported networks in parallel. Automatically detects "degen/micin" tokens using block explorer transaction history.\r

  • Usage (All Chains): node skills/web3-ops/index.js portfolio [--json]\r
  • Usage (Single Chain): node skills/web3-ops/index.js portfolio --chain \x3Cchain> [--json]\r \r

4. Transfer Coins or Tokens\r

Send native coins or ERC-20 tokens to another address.\r

  • Native Coin: node skills/web3-ops/index.js transfer --chain \x3Cchain> --to \x3Crecipient_address> --amount \x3Camount> [--json] [--simulate]\r
  • ERC-20 Token: node skills/web3-ops/index.js transfer --chain \x3Cchain> --to \x3Crecipient_address> --amount \x3Camount> --token \x3Csymbol_or_address> [--json] [--simulate]\r \r

5. Swap Tokens (Same-Chain)\r

Swap tokens on the same blockchain network. Supports auto-routing and manual routers.\r

  • Auto Mode (Li.Fi Aggregator):\r node skills/web3-ops/index.js swap --chain \x3Cchain> --fromToken \x3Csymbol_or_address> --toToken \x3Csymbol_or_address> --amount \x3Camount> --mode auto [--json] [--simulate]\r
  • Manual Mode (Uniswap/PancakeSwap/Relay/Li.Fi):\r node skills/web3-ops/index.js swap --chain \x3Cchain> --fromToken \x3Csymbol_or_address> --toToken \x3Csymbol_or_address> --amount \x3Camount> --mode manual --provider \x3Clifi|relay|uniswap|pancakeswap> [--json] [--simulate]\r
  • Slippage Tolerance: Add --slippage \x3Cpercent> (default is 0.5)\r \r

6. Bridge Tokens (Cross-Chain)\r

Bridge and swap assets from one blockchain to another.\r

  • Auto Mode (Li.Fi Aggregator):\r node skills/web3-ops/index.js bridge --fromChain \x3Csource_chain> --toChain \x3Ctarget_chain> --fromToken \x3Csymbol_or_address> --toToken \x3Csymbol_or_address> --amount \x3Camount> --mode auto [--json] [--simulate]\r
  • Manual Mode (Relay/Li.Fi):\r node skills/web3-ops/index.js bridge --fromChain \x3Csource_chain> --toChain \x3Ctarget_chain> --fromToken \x3Csymbol_or_address> --toToken \x3Csymbol_or_address> --amount \x3Camount> --mode manual --provider \x3Clifi|relay> [--json] [--simulate]\r \r

7. Mint NFT\r

Mint or claim NFTs on a smart contract.\r

  • Usage: node skills/web3-ops/index.js mint --chain \x3Cchain> --contract \x3Cnft_contract_address_or_url> [--function \x3Csignature>] [--args \x3Cjson_array_arguments>] [--value \x3Cnative_fee_to_send>] [--json] [--simulate]\r
  • Note: --function, --args, and --value are optional. If omitted, the skill will fetch the verified contract ABI from the explorer, auto-detect the mint function (e.g., mint, claim), and infer the arguments automatically.\r
  • Example: node skills/web3-ops/index.js mint --chain base --contract 0x123...\r \r \r

8. Custom Transaction (Raw Transaction)\r

Broadcast a custom raw transaction with hex data payload.\r

  • Usage: node skills/web3-ops/index.js custom --chain \x3Cchain> --to \x3Ctarget_address> --data \x3Chex_calldata> --value \x3Cnative_amount> [--json] [--simulate]\r \r

9. Profit & Loss Tracker (PnL)\r

Calculate the average buy price and current profit/loss of a token.\r

  • Usage: node skills/web3-ops/index.js pnl --chain \x3Cchain> --token \x3Csymbol_or_address> [--buyPrice \x3Cmanual_usd_price>] [--json]\r \r

10. Cutloss & Takeprofit Monitor\r

Monitor token price in real-time and execute a pre-authorized safety swap to USDC if limits are reached.\r

  • Usage: node skills/web3-ops/index.js monitor --chain \x3Cchain> --token \x3Csymbol_or_address> --amount \x3Csell_amount> --cutloss \x3Cpercent_or_price> --takeprofit \x3Cpercent_or_price> [--max-checks \x3Ccount>] [--interval \x3Cseconds>] [--alert] [--json]\r \r

11. Trading Signals\r

Fetch daily candles and analyze RSI (14) & EMA (20/50) indicators to generate Buy/Sell recommendations.\r

  • Usage: node skills/web3-ops/index.js signal --chain \x3Cchain> --token \x3Csymbol_or_address> [--alert] [--json]\r \r

12. Smart Contract Auditor\r

Perform a GoPlus security audit to detect honey pots, taxes, and code privileges.\r

  • Usage: node skills/web3-ops/index.js analyze --chain \x3Cchain> --token \x3Csymbol_or_address> [--json]\r \r

13. Whale Tracker\r

Scan block explorer transfers for large transaction amounts exceeding a threshold.\r

  • Usage: node skills/web3-ops/index.js whales --chain \x3Cchain> --token \x3Csymbol_or_address> [--min-usd \x3Cvalue>] [--alert] [--json]\r \r

14. Create EVM Wallet\r

Generate a random EVM wallet and automatically write its credentials to .env.\r

  • Usage: node skills/web3-ops/index.js create-wallet [--force] [--json]\r
  • Security Warning: Run this command only locally in the CLI terminal. Do not let AI agents trigger it remotely over chat interfaces.\r \r ---\r \r \r

Agent Behavior & Telegram Prompt Guidelines\r

\r When interacting with the user regarding blockchain transactions:\r

  1. Translate Intent to CLI: Convert the user's natural language requests (e.g., "Check my Base portfolio", "Swap 10 USDC to ETH on Base", "Send 0.01 Sepolia ETH to 0x...") into the corresponding CLI command. Always append --json for programmatic parsing.\r
  2. No Raw JSON Outputs (CRITICAL): Never output raw JSON (such as { "success": true, ... }) directly to the user. Always parse the command's JSON output and translate it into a natural, friendly, and engaging human-readable response.\r
  3. Utilize Simulation Mode: If the user is unsure, asks "will this transaction work?", or is making a high-value transfer, suggest simulating it first using --simulate.\r
  4. Display Copyable Addresses (CAs): When printing token balances, portfolios, or transaction confirmations, format all contract addresses (CA) inside Telegram monospace code blocks (e.g. `0x940181a94A35A4569E4529A3CDfB74e38FD98631`) so users can tap to copy them instantly.\r
  5. Support Testnets & Custom RPCs: If the user specifies a testnet (e.g., Sepolia) or requests a private RPC, append the --rpc flag to the command.\r
  6. Explorer Links: Always extract the explorer link from the output JSON and present it to the user so they can track block confirmation status.\r
  7. Security Notice: Never request seed phrases, mnemonics, or private keys. The wallet configuration is loaded securely from the local server's .env file.\r
  8. Casual & Friendly Tone: Explain transaction results, balances, or confirmations in a natural, casual, and friendly everyday chat style (e.g., like a helpful Web3 degen companion). Avoid robotic or overly dry responses, but always keep technical fields (like contract addresses and transaction hashes) accurate and formatted for easy copying.\r
  9. Format PnL Reports: Summarize PnL reports into friendly bullets. E.g., mention the current balance, average buy price, current market price, and the overall gain/loss in USD and ROI percentage.\r
  10. Format Security Audits: Highlight whether the contract is safe or a honeypot, buying/selling taxes, and list any risk findings with appropriate alert emojis (e.g., 🚨, ⚠️, ℹ️).\r
  11. Format Trading Signals: Present the overall signal recommendation (e.g., "STRONG BUY" in bold) along with the RSI (14) value and the EMA trend.\r
  12. Format Whale Alerts: Summarize detected whale transactions by showing the USD value, the amount of tokens, sender/receiver addresses, and a link to the transaction hash.\r
  13. NFT Mint Autodetection: If the user asks to mint an NFT by providing a contract address or marketplace/explorer link without specifying the function signature or arguments, run the mint command and omit the --function, --args, and --value parameters. The skill will automatically fetch the verified contract ABI, detect the mint function, and infer the arguments. Always suggest simulation using --simulate first to verify correctness.\r \r
能力标签
cryptofinancial-authorityrequires-walletcan-sign-transactionsrequires-sensitive-credentials
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install web3-ops
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /web3-ops 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Release v1.1.0: Advanced trading (PnL, signals, monitors, GoPlus audits, anti-MEV), local wallet generation, and Model Context Protocol (MCP) server support.
元数据
Slug web3-ops
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

web3-ops 是什么?

Perform EVM Web3 on-chain operations such as checking addresses, scanning portfolios, transferring assets, swapping/bridging tokens, and minting NFTs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 17 次。

如何安装 web3-ops?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install web3-ops」即可一键安装,无需额外配置。

web3-ops 是免费的吗?

是的,web3-ops 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

web3-ops 支持哪些平台?

web3-ops 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 web3-ops?

由 perasyudha(@perasyudha)开发并维护,当前版本 v1.1.0。

💬 留言讨论