1

I saw that Foundry has a CLI tool called Cast. What is it useful for?

1 Answer 1

1

Cast is a tool part of Foundry, the blazing fast, portable and modular toolkit for Ethereum application development.

To quote the README:

Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.

Cast has lots of helpful utilities for Ethereum developers. For instance, there is a command for querying the ETH balance of an account:

cast balance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# prints 34011798284984006579

And there is a command for getting a wei value from a simple number:

cast --to-wei 15
# prints 15000000000000000000

Make

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.