skills/evm-swiss-knife/SKILL.md
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.
npx skillsauth add kukapay/crypto-skills evm-swiss-knifeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
To use this skill, you need Foundry installed, which provides the cast command.
Follow the official installation guide: https://getfoundry.sh/introduction/installation
Install Foundryup:
curl -L https://foundry.paradigm.xyz | bash
Source your shell configuration or start a new terminal:
source ~/.bashrc # or ~/.zshrc
Install Foundry:
foundryup
Verify installation:
cast --version
For other platforms or detailed instructions, see the full guide at https://getfoundry.sh/introduction/installation
cast command available)--rpc-url or environment variables)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.
Fetch the RPC data:
curl -s https://chainlist.org/rpcs.json | jq '.[] | select(.chainId == 1)' # For Ethereum (chain ID 1)
Look for RPC URLs that are:
Popular choices (extracted from ChainList):
For production use, consider paid RPC services like Alchemy, Infura, or QuickNode for higher reliability and rate limits.
Always verify the chain ID matches your intended network to avoid connecting to wrong chains.
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 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 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...]
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>
Deploy a contract:
cast send --private-key <pk> --rpc-url <rpc_url> --create <bytecode> [constructor_args...]
Decode hex data:
cast --to-ascii <hex_string>
cast --to-dec <hex_string>
export ETH_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/YOUR_API_KEY
cast balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
cast balance <address> --rpc-url https://polygon-rpc.com/
cast balance <address> --rpc-url http://127.0.0.1:8545
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
Estimate gas for a transaction:
cast estimate --rpc-url <rpc_url> <to_address> --value <amount>
For complex contracts, save ABI to file and use:
cast call --abi <abi_file> <contract> <function> [args...]
tools
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.
testing
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.
development
Generate, build, and deploy custom ERC20 tokens on EVM networks. Use when users want to create and deploy their own ERC20 tokens with custom parameters like name, symbol, decimals, and initial supply. Supports deployment to various networks including Sepolia testnet and requires Foundry (forge/cast) for blockchain interactions.
tools
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.