Use Foundry Cast effectively for EVM investigation and contract interaction. Trigger when users ask to decode revert messages, identify function signatures/selectors/topics, inspect token metadata like decimals/symbol/name, query chain state, inspect logs or storage, build cast commands, or troubleshoot RPC/ABI issues. Also use for transaction preparation with strict safety checks and explicit confirmation before any signing or broadcast.
Use this skill to convert user intent into safe, correct cast commands and to interpret command output quickly.
--rpc-url -> ETH_RPC_URL/RPC_URL env -> foundry config endpoint -> ask for RPC/network.cast send, state-changing ERC20 actions, and any signed/broadcast transaction as dangerous.chain-idrpc-urlfromtovaluefunctionargscast estimate, cast call, or both).Use this exact structure before state-changing execution:
Preflight summary:
- Chain ID: <id>
- RPC URL: <url or source>
- From: <address>
- To: <address>
- Value: <value>
- Action: <function/signature + args>
- Gas: <gas params>
- Nonce: <explicit or auto>
Reply "confirm" to proceed with signing/sending this transaction.
references/command-map.md.references/revert-and-signatures.md.references/token-introspection.md.references/tx-safety-and-rpc.md.cast command.