cast-commands

Query EVM chain state and send transactions using Cast CLI.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/cyotee/foundry-skills --skill cast-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cast-commands
Source: https://github.com/cyotee/foundry-skills/tree/main/skills/cast-commands
Command: npx skills add https://github.com/cyotee/foundry-skills --skill cast-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cast CLI enables developers to interact with EVM-compatible blockchains by querying state, sending transactions, and encoding/decoding data from a single, consistent interface.

Core Features & Use Cases

  • Read contract state and storage
  • Send transactions and invoke contract functions
  • Encode/decode data and function calls
  • Debug transactions, inspect blocks and receipts
  • Work with multiple networks via flexible RPC configurations

Quick Start

Install Cast and run a simple read operation against a contract to retrieve a balance.

Frequently Asked Questions about cast-commands

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

FAQPage Schema
How do I read EVM contract state and check balances from the command line?

You can read EVM contract state and check balances by using Cast CLI to query blockchain state, invoke contract functions, and retrieve storage data directly from your terminal. It provides a consistent interface for these operations across mainnet and testnets.

What is the best way to debug EVM transactions and inspect block receipts?

Debugging EVM transactions and inspecting block receipts is handled by Cast CLI, which allows you to decode transaction data, inspect blocks, and trace calls. It provides structured command references to analyze transaction execution across various networks.

Do I need Foundry installed to send transactions and query EVM chains?

Yes, you need Cast from the Foundry toolchain installed to send transactions and query EVM chains. The Skill requires this environment setup to execute commands, interact with contracts, and configure RPC endpoints for different networks.

Can I use Cast CLI to encode and decode data for blockchain contract calls?

Yes, you can use Cast CLI to encode and decode data for blockchain contract calls. It supports transforming data formats, encoding function calls, and decoding returned data, making it easier to interact with and debug EVM smart contracts.

How do I configure RPC endpoints to interact with multiple EVM testnets?

Cast CLI supports flexible RPC configurations, allowing you to interact with multiple EVM testnets and mainnet. You can specify different RPC endpoints to query state, send transactions, and debug contracts across various network environments.

Why does querying contract state fail without proper RPC configurations?

Querying contract state fails without proper RPC configurations because Cast CLI requires a valid connection to an EVM node. Configuring the correct RPC endpoint is a prerequisite for reading storage, invoking functions, and debugging transactions successfully.