Install
openclaw skills install web3-onchain-skillPerform EVM Web3 on-chain operations such as checking addresses, scanning portfolios, transferring assets, swapping/bridging tokens, and minting NFTs.
openclaw skills install web3-onchain-skillThis skill allows the OpenClaw AI agent to interact directly with EVM blockchains (Ethereum, Arbitrum, Base, Optimism, Polygon, BNB Chain, Sonic, Sepolia, etc.) using a local Node.js CLI utility.
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 <url>: 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 <command> [arguments]
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 <chain> [--json]node skills/web3-ops/index.js balance --chain <chain> --token <symbol_or_address> [--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 <chain> [--json]Send native coins or ERC-20 tokens to another address.
node skills/web3-ops/index.js transfer --chain <chain> --to <recipient_address> --amount <amount> [--json] [--simulate]node skills/web3-ops/index.js transfer --chain <chain> --to <recipient_address> --amount <amount> --token <symbol_or_address> [--json] [--simulate]Swap tokens on the same blockchain network. Supports auto-routing and manual routers.
node skills/web3-ops/index.js swap --chain <chain> --fromToken <symbol_or_address> --toToken <symbol_or_address> --amount <amount> --mode auto [--json] [--simulate]node skills/web3-ops/index.js swap --chain <chain> --fromToken <symbol_or_address> --toToken <symbol_or_address> --amount <amount> --mode manual --provider <lifi|relay|uniswap|pancakeswap> [--json] [--simulate]--slippage <percent> (default is 0.5)Bridge and swap assets from one blockchain to another.
node skills/web3-ops/index.js bridge --fromChain <source_chain> --toChain <target_chain> --fromToken <symbol_or_address> --toToken <symbol_or_address> --amount <amount> --mode auto [--json] [--simulate]node skills/web3-ops/index.js bridge --fromChain <source_chain> --toChain <target_chain> --fromToken <symbol_or_address> --toToken <symbol_or_address> --amount <amount> --mode manual --provider <lifi|relay> [--json] [--simulate]Mint or claim NFTs on a smart contract.
node skills/web3-ops/index.js mint --chain <chain> --contract <nft_contract_address> --function <signature> --args <json_array_arguments> --value <native_fee_to_send> [--json] [--simulate]node skills/web3-ops/index.js mint --chain base --contract 0x123... --function "mint(uint256)" --args "[1]"Broadcast a custom raw transaction with hex data payload.
node skills/web3-ops/index.js custom --chain <chain> --to <target_address> --data <hex_calldata> --value <native_amount> [--json] [--simulate]When interacting with the user regarding blockchain transactions:
--json for programmatic parsing.--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.