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.
These flags can be appended to any command:
--json: Silences human logs and outputs strictly JSON to stdout (highly recommended for AI agent parsing).--rpc : Overrides default node RPC with a custom RPC endpoint (useful for testnets or private nodes).--simulate: Simulates the transaction (dry run) using gas estimation and call simulation. Prevents sending failing transactions and calculates gas fees.All commands are run using Node.js inside the skill directory:
node skills/web3-ops/index.js
Get your configured wallet address.
node skills/web3-ops/index.js address [--json]Check native coin (ETH, MATIC, BNB, S) or a specific ERC-20 token balance using symbol or contract address.
node skills/web3-ops/index.js balance --chain [--json] node skills/web3-ops/index.js balance --chain --token [--json] node skills/web3-ops/index.js balance --chain base --token AEROScan 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.
node skills/web3-ops/index.js portfolio [--json]node skills/web3-ops/index.js portfolio --chain [--json] Send native coins or ERC-20 tokens to another address.
node skills/web3-ops/index.js transfer --chain --to --amount [--json] [--simulate] node skills/web3-ops/index.js transfer --chain --to --amount --token [--json] [--simulate] Swap tokens on the same blockchain network. Supports auto-routing and manual routers.
node skills/web3-ops/index.js swap --chain
node skills/web3-ops/index.js swap --chain
--slippage (default is 0.5)Bridge and swap assets from one blockchain to another.
node skills/web3-ops/index.js bridge --fromChain
node skills/web3-ops/index.js bridge --fromChain
Mint or claim NFTs on a smart contract.
node skills/web3-ops/index.js mint --chain --contract [--function ] [--args ] [--value ] [--json] [--simulate] --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.node skills/web3-ops/index.js mint --chain base --contract 0x123...Broadcast a custom raw transaction with hex data payload.
node skills/web3-ops/index.js custom --chain --to --data --value [--json] [--simulate] Calculate the average buy price and current profit/loss of a token.
node skills/web3-ops/index.js pnl --chain --token [--buyPrice ] [--json] Monitor token price in real-time and execute a pre-authorized safety swap to USDC if limits are reached.
node skills/web3-ops/index.js monitor --chain --token --amount --cutloss --takeprofit [--max-checks ] [--interval ] [--alert] [--json] Fetch daily candles and analyze RSI (14) & EMA (20/50) indicators to generate Buy/Sell recommendations.
node skills/web3-ops/index.js signal --chain --token [--alert] [--json] Perform a GoPlus security audit to detect honey pots, taxes, and code privileges.
node skills/web3-ops/index.js analyze --chain --token [--json] Scan block explorer transfers for large transaction amounts exceeding a threshold.
node skills/web3-ops/index.js whales --chain --token [--min-usd ] [--alert] [--json] Generate a random EVM wallet and automatically write its credentials to .env.
node skills/web3-ops/index.js create-wallet [--force] [--json]When interacting with the user regarding blockchain transactions:
--json for programmatic parsing.{ "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.--simulate. 0x940181a94A35A4569E4529A3CDfB74e38FD98631 `) so users can tap to copy them instantly.--rpc flag to the command.explorer link from the output JSON and present it to the user so they can track block confirmation status..env file.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.共 4 个版本