← Back to Skills Marketplace
perasyudha

web3-ops

by perasyudha · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
45
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install web3-onchain-skill
Description
Perform EVM Web3 on-chain operations such as checking addresses, scanning portfolios, transferring assets, swapping/bridging tokens, and minting NFTs.
README (SKILL.md)

Web3 On-chain Operations Skill

This 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.

Global Options

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 \x3Curl>: 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.

CLI Commands & Arguments

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

1. Get Wallet Address

Get your configured wallet address.

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

2. Check Specific Balance

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

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

3. Scan Portfolio (New)

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.

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

4. Transfer Coins or Tokens

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

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

5. Swap Tokens (Same-Chain)

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

  • Auto Mode (Li.Fi Aggregator): node skills/web3-ops/index.js swap --chain \x3Cchain> --fromToken \x3Csymbol_or_address> --toToken \x3Csymbol_or_address> --amount \x3Camount> --mode auto [--json] [--simulate]
  • Manual Mode (Uniswap/PancakeSwap/Relay/Li.Fi): 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]
  • Slippage Tolerance: Add --slippage \x3Cpercent> (default is 0.5)

6. Bridge Tokens (Cross-Chain)

Bridge and swap assets from one blockchain to another.

  • Auto Mode (Li.Fi Aggregator): 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]
  • Manual Mode (Relay/Li.Fi): 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]

7. Mint NFT

Mint or claim NFTs on a smart contract.

  • Usage: node skills/web3-ops/index.js mint --chain \x3Cchain> --contract \x3Cnft_contract_address> --function \x3Csignature> --args \x3Cjson_array_arguments> --value \x3Cnative_fee_to_send> [--json] [--simulate]
  • Example: node skills/web3-ops/index.js mint --chain base --contract 0x123... --function "mint(uint256)" --args "[1]"

8. Custom Transaction (Raw Transaction)

Broadcast a custom raw transaction with hex data payload.

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

Agent Behavior & Telegram Prompt Guidelines

When interacting with the user regarding blockchain transactions:

  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.
  2. 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.
  3. 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.
  4. 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.
  5. Explorer Links: Always extract the explorer link from the output JSON and present it to the user so they can track block confirmation status.
  6. Security Notice: Never request seed phrases, mnemonics, or private keys. The wallet configuration is loaded securely from the local server's .env file.
  7. 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.
Capability Tags
cryptorequires-walletrequires-sensitive-credentials
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install web3-onchain-skill
  3. After installation, invoke the skill by name or use /web3-onchain-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Web3 On-chain Operations Skill v1.0.0 - Initial release with support for EVM blockchain operations via Node.js CLI. - Supports checking wallet addresses, querying balances, scanning token portfolios, transferring assets, swapping and bridging tokens, and minting NFTs. - Includes simulation mode for safe, gas-estimated dry runs. - Integrates with multiple EVM chains (Ethereum, Arbitrum, Base, Optimism, Polygon, BNB Chain, Sonic, Sepolia, etc.). - Designed for easy Telegram integration, with copyable addresses, transaction explorer links, and friendly chat responses. - Private keys managed securely via server environment; never requests sensitive user info.
Metadata
Slug web3-onchain-skill
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is web3-ops?

Perform EVM Web3 on-chain operations such as checking addresses, scanning portfolios, transferring assets, swapping/bridging tokens, and minting NFTs. It is an AI Agent Skill for Claude Code / OpenClaw, with 45 downloads so far.

How do I install web3-ops?

Run "/install web3-onchain-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is web3-ops free?

Yes, web3-ops is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does web3-ops support?

web3-ops is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created web3-ops?

It is built and maintained by perasyudha (@perasyudha); the current version is v1.0.0.

💬 Comments