MCPInstall

evm-swiss-knife

Interact with EVM-compatible blockchains using Foundry's cast tool for querying balances, calling contracts, sending transactions, and blockchain exploration. Use when needing to interact with Ethereum Virtual Machine networks via command-line, including reading contract state, sending funds, executing contract functions, or inspecting blockchain data.

Installs
183
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/kukapay/crypto-skills --skill evm-swiss-knife
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads evm-swiss-knife automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

EVM Swiss Knife

This skill enables interaction with EVM-compatible blockchains through Foundry's cast command-line tool. It covers common blockchain operations like balance queries, contract calls, transaction sending, and network inspection.

Installation

To use this skill, you need Foundry installed, which provides the cast command.

Follow the official installation guide: https://getfoundry.sh/introduction/installation

Quick Install (Linux/Mac)

  1. Install Foundryup:

    curl -L https://foundry.paradigm.xyz | bash
    
  2. Source your shell configuration or start a new terminal:

    source ~/.bashrc  # or ~/.zshrc
    
  3. Install Foundry:

    foundryup
    
  4. Verify installation:

    cast --version
    

For other platforms or detailed instructions, see the full guide at https://getfoundry.sh/introduction/installation

Prerequisites

  • Foundry installed (cast command available)
  • RPC endpoint configured (via --rpc-url or environment variables)
  • Private key for transaction operations (if sending txs)

RPC URL Selection

To interact with different EVM networks, you need reliable RPC endpoints. Use ChainList's API at https://chainlist.org/rpcs.json to get a comprehensive JSON list of RPC URLs for all supported chains.

How to Select RPC URLs:

  1. Fetch the RPC data:

    curl -s https://chainlist.org/rpcs.json | jq '.[] | select(.chainId == 1)'  # For Ethereum (chain ID 1)
    
  2. Look for RPC URLs that are:

    • Public and free: No API keys required
    • No or limited tracking: Avoid URLs with "tracking": "yes"
    • Fast and reliable: Prefer URLs with low latency or high score
    • Open source: Prefer community-maintained endpoints
  3. Popular choices (extracted from ChainList):

  4. For production use, consider paid RPC services like Alchemy, Infura, or QuickNode for higher reliability and rate limits.

  5. Always verify the chain ID matches your intended network to avoid connecting to wrong chains.

Common Operations

Query Account Balance

Get ETH balance of an address:

cast balance <address> --rpc-url <rpc_url>

Get ERC20 token balance:

cast call <token_contract> "balanceOf(address)(uint256)" <address> --rpc-url <rpc_url>

Call Contract Functions (Read-Only)

Call a view/pure function:

cast call <contract_address> "<function_signature>" [args...] --rpc-url <rpc_url>

Example - get token total supply:

cast call 0xA0b86a33E6441e88C5F2712C3E9b74B6F3f5a8b8 "totalSupply()(uint256)" --rpc-url <rpc_url>

Send Transactions

Send ETH:

cast send --private-key <pk> --rpc-url <rpc_url> <to_address> --value <amount_in_wei>

Call contract function (write):

cast send --private-key <pk> --rpc-url <rpc_url> <contract_address> "<function_signature>" [args...]

Blockchain Inspection

Get latest block number:

cast block-number --rpc-url <rpc_url>

Get block details:

cast block <block_number> --rpc-url <rpc_url>

Get transaction details:

cast tx <tx_hash> --rpc-url <rpc_url>

Contract Deployment

Deploy a contract:

cast send --private-key <pk> --rpc-url <rpc_url> --create <bytecode> [constructor_args...]

Decoding Data

Decode hex data:

cast --to-ascii <hex_string>
cast --to-dec <hex_string>

Network-Specific Examples

Ethereum Mainnet

export ETH_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/YOUR_API_KEY
cast balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Polygon

cast balance <address> --rpc-url https://polygon-rpc.com/

Local Development (Anvil)

cast balance <address> --rpc-url http://127.0.0.1:8545

Error Handling

  • RPC errors: Check endpoint URL and network connectivity
  • Insufficient funds: Ensure account has enough ETH for gas + value
  • Contract errors: Verify function signatures and parameter types
  • Private key errors: Ensure correct format (0x prefixed hex)

Advanced Usage

Batch Operations

Use shell loops for multiple queries:

for addr in addr1 addr2 addr3; do
  echo "Balance of $addr: $(cast balance $addr --rpc-url $RPC_URL)"
done

Gas Estimation

Estimate gas for a transaction:

cast estimate --rpc-url <rpc_url> <to_address> --value <amount>

ABI Interactions

For complex contracts, save ABI to file and use:

cast call --abi <abi_file> <contract> <function> [args...]

Security Notes

  • Never expose private keys in scripts or logs
  • Use environment variables for sensitive data
  • Test on testnets before mainnet operations
  • Verify contract addresses and function signatures
  • Monitor gas prices for transaction timing

FAQ

What does the evm-swiss-knife skill do?

Interact with EVM-compatible blockchains using Foundry's cast tool for querying balances, calling contracts, sending transactions, and blockchain exploration. Use when needing to interact with Ethereum Virtual Machine networks via command-line, including reading contract state, sending funds, executing contract functions, or inspecting blockchain data.

How do I install evm-swiss-knife?

Run npx skills add https://github.com/kukapay/crypto-skills --skill evm-swiss-knife in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/evm-swiss-knife/ (personal) or .claude/skills/evm-swiss-knife/ (project).

Which AI agents can use evm-swiss-knife?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is evm-swiss-knife safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains evm-swiss-knife?

It is published by kukapay in kukapay/crypto-skills. It has 183 recorded installs.

More from kukapay/crypto-skills

View all →

trading-strategist

kukapay/crypto-skills

Provides trading strategies for cryptocurrencies based on Binance market data, calculated technical analysis indicators, and aggregated market sentiment from crypto RSS news feeds. Use when users ask for trading advice, strategy recommendations, or analysis combining price data, TA, and sentiment for crypto assets like ETH, BTC, or altcoins.

market-sentiment

kukapay/crypto-skills

Aggregate news from popular cryptocurrency RSS feeds, analyze sentiment of articles, and calculate an overall market sentiment score with detailed explanation. Use when assessing crypto market sentiment for trading decisions, research, or monitoring trends from RSS sources.

Business & Finance621 installs

meme-scout

kukapay/crypto-skills

Comprehensive tool for scouting trending meme coins on DEX platforms like DexScreener. Use for discovering trending tokens, analyzing price movements, volume data, and risk assessments. Supports multiple timeframes (5m, 1h, 6h, 24h) and includes risk checking capabilities for specific tokens.

Business & Finance253 installs

yield-opportunities

kukapay/crypto-skills

Comprehensive tool for finding and analyzing DeFi yield opportunities across protocols, chains, and asset types. Use when users want to earn yield on crypto assets (staking, lending, liquidity farming, aggregators). Supports exhaustive parallel research using librarian agents, direct web searches, and GitHub repository analysis.

Business & Finance251 installs

token-minter

kukapay/crypto-skills

Open the skill to read its SKILL.md instructions.

Business & Finance137 installs

Popular business & finance skills

View category →

sales-enablement

coreyhaines31/marketingskills

When the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'battle card,' 'battlecard,' 'competitive one-pager,' 'win-loss analysis,' 'why are we losing deals,' 'loss reasons,' 'how do I respond to this objection,' 'prospect just said,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps,' 'cold call script,' or 'voicemail script.' Use this for any document or asset that helps a sales team close deals. For public competitor comparison pages, see competitors. For running buyer interviews or churn research, see customer-research. For marketing website copy, see copywriting. For cold outreach emails, see cold-email. For the offer being sold (bonuses, guarantees, pricing structure),

Business & Finance119.5K installs

revops

coreyhaines31/marketingskills

When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'outbound pipeline stages,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see emails. For pricing decisions, see pricing.

Business & Finance114.1K installs

sales-funnel-blueprint

autonnel/autonnel-skills

Turn an offer into a concrete multi-step sales funnel spec - page-by-page structure, price ladder, copy outline and the metrics each step must hit. Use when asked to build a sales funnel, marketing funnel, landing page flow, lead magnet funnel, webinar funnel, tripwire or VSL funnel, when planning a product launch page flow, or when someone asks "what pages do I need" for selling something online.

Business & Finance104.5K installs

pricing

coreyhaines31/marketingskills

When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'can AI read my pricing.' Use this whenever someone is figuring out what to charge, how to structure their plans, or wants to audit a pricing page (for humans and for the AI agents that shortlist tools). For in-app upgrade screens, see paywalls. For offer construction (bonuses, guarantees, value framing, naming) on services/courses/coaching/high-ticket B2B, see offers.

Business & Finance80K installs

cross-border-ecommerce

nexscope-ai/ecommerce-skills

Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.

Business & Finance62.9K installs

pricing-strategy

coreyhaines31/marketingskills

When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' or 'should I offer a free plan.' Use this whenever someone is figuring out what to charge or how to structure their plans. For in-app upgrade screens, see paywall-upgrade-cro.

Business & Finance61.2K installs