cast-commands

Execute Ethereum contract read/write calls and storage queries via Foundry's cast CLI.

120|12|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ccashwell/evm-cortex --skill cast-commands-ccashwell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cast-commands
Source: https://github.com/ccashwell/evm-cortex/tree/main/skills/cast-commands
Command: npx skills add https://github.com/ccashwell/evm-cortex --skill cast-commands-ccashwell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This command-line skill enables developers to interact with Ethereum contracts directly from the terminal, eliminating the need for boilerplate scripts for common tasks.

Core Features & Use Cases

  • Read on-chain state with cast call to query balances, storage, and function outputs.
  • Write state with cast send to initiate transactions, approvals, and state changes.
  • Inspect storage and decode ABI data using cast storage and ABI encoding/decoding for debugging and auditing.
  • Quick example workflows include ad-hoc debugging, prototyping contracts, and verifying interactions during development.

Quick Start

Run a quick balance check on a contract by calling cast call with its address and your RPC URL.

Frequently Asked Questions about cast-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Ethereum contract state from the CLI?

Use the cast call command to query Ethereum contract state from the CLI, reading balances, storage, and function outputs across mainnet, testnets, and local networks without boilerplate scripts.

How do I send a transaction to an Ethereum contract using Foundry cast?

To send a transaction to an Ethereum contract using Foundry cast, execute the cast send command to initiate state changes, approvals, and transactions directly from your terminal.

Can I inspect contract storage and decode ABI data for debugging with cast?

Yes, you can inspect contract storage and decode ABI data for debugging with cast by using the cast storage command to examine raw storage slots and decode ABI-encoded data for audits.

Does Foundry's cast tool work across mainnet, testnets, and local networks?

Foundry's cast tool works across mainnet, testnets, and local networks, allowing you to query blocks, read state, and send transactions by specifying the appropriate RPC URL for your target network.

Why use cast commands instead of writing custom scripts for Ethereum interactions?

Use cast commands instead of custom scripts for Ethereum interactions to eliminate boilerplate code, enabling rapid ad-hoc debugging, contract prototyping, and interaction verification directly from the terminal.