Cast Commands Support Matrix

🔄 Last update: May 2025

CommandStatusDescription
cast 4byte-decode✅ SupportedDecodes a given 4-byte selector into its associated function signature.
cast 4byte-event✅ SupportedFetches event signatures from the 4byte.directory by their selector.
cast abi-decode✅ SupportedDecodes ABI-encoded data into a human-readable format.
cast abi-encode✅ SupportedEncodes data into ABI format for function calls and transactions.
cast access-list❌ Not SupportedGenerates an access list for a transaction, which can be used to optimize gas usage.
cast address-zero✅ SupportedOutputs the zero address (0x0000000000000000000000000000000000000000).
cast admin❌ Not SupportedReturns the admin of a specified proxy contract.
cast age✅ SupportedCalculates the age of a block in seconds.
cast balance✅ SupportedRetrieves the balance of an address in wei or ether.
cast base-fee✅ SupportedFetches the base fee of the latest block, useful for estimating gas costs.
cast bind (DEPRECATED)✅ SupportedGenerates Go bindings for Solidity contracts, similar to forge bind.
cast block✅ SupportedRetrieves detailed information about a specific block on the blockchain.
cast block-number✅ SupportedReturns the current block number of the Ethereum blockchain.
cast call✅ SupportedExecutes a read-only (constant) call to a smart contract.
cast call –create✅ SupportedCalls a contract and creates a new contract in the same transaction.
cast calldata✅ SupportedEncodes function call data for a contract, which can be used in transactions.
cast calldata-decode✅ SupportedDecodes encoded calldata back into its original arguments.
cast chain✅ SupportedDisplays name of the current chain.
cast chain-id✅ SupportedReturns the chain ID of the Ethereum network, which is used for transaction signing.
cast client✅ SupportedFetches information about the connected Ethereum client, such as its version.
cast code✅ SupportedRetrieves the bytecode of a contract deployed at a specific address.
cast codesize✅ SupportedReturns the size of the bytecode at a specific address, in bytes.
cast completions✅ SupportedGenerates shell completions for cast, improving command-line usability.
cast compute-address✅ SupportedComputes the Ethereum address for a contract deployed by a specific account.
cast concat-hex✅ SupportedConcatenates multiple hexadecimal values into a single hex string.
cast create2✅ SupportedComputes the address of a contract deployed using the CREATE2 opcode.
cast decode-eof❌ Not SupportedDecodes Ethereum Object Format (EOF) bytecode, used in Ethereum contracts.
cast decode-transaction✅ SupportedDecodes the data and parameters of a raw transaction.
cast disassemble❌ Not SupportedDisassembles contract bytecode into readable EVM assembly instructions.
cast estimate✅ SupportedEstimates the gas cost of executing a transaction on the blockchain.
cast estimate –create✅ SupportedEstimates the gas cost for deploying a contract with a creation transaction.
cast source❌ Not SupportedFetches and displays the verified source code of a contract from a block explorer.
cast find-block✅ SupportedFinds a block based on a given timestamp, returning the block number.
cast format-bytes32-string✅ SupportedConverts a string into a bytes32 format for Solidity.
cast from-bin✅ SupportedDecodes binary-encoded data into a human-readable format.
cast from-fixed-point✅ SupportedConverts a fixed-point number into a human-readable string.
cast from-rlp✅ SupportedDecodes RLP-encoded data, commonly used in Ethereum transactions.
cast from-utf8✅ SupportedConverts a UTF-8 string to a hex-encoded representation.
cast from-wei✅ SupportedConverts a value from wei (the smallest unit of ether) to ether.
cast gas-price✅ SupportedFetches the current gas price on the Ethereum network.
cast generate-fig-spec✅ SupportedGenerates a Fig spec for Cast, which can be used for command-line autocomplete functionality.
cast hash-message (DEPRECATED)✅ SupportedHashes a message using Ethereum’s eth_sign method, preparing it for signing.
cast hash-zero✅ SupportedReturns the hash of an empty string (0x000…000) using Keccak-256.
cast implementation✅ SupportedReturns the implementation address of a specified proxy contract.
cast index❌ Not SupportedFetches the indexed logs of an event from the blockchain, useful for querying historical data.
cast index-erc7201✅ SupportedFetches the logs of an ERC-7201 compliant event from the blockchain
cast interface❌ Not SupportedGenerates a Solidity interface from a deployed contract’s ABI.
cast keccak✅ SupportedComputes the Keccak-256 hash of the provided input data.
cast logs✅ SupportedFetches logs and events from the blockchain, based on specified filters.
cast lookup-address✅ SupportedFetches the ENS name associated with a given Ethereum address, if any.
cast max-int✅ SupportedOutputs the maximum value for a signed 256-bit integer.
cast max-uint✅ SupportedOutputs the maximum value for an unsigned 256-bit integer.
cast min-int✅ SupportedOutputs the minimum value for a signed 256-bit integer.
cast mktx✅ SupportedCreates a transaction object without sending it, useful for offline signing.
cast mktx –create✅ SupportedCreates a transaction that deploys a contract, without sending it.
cast namehash✅ SupportedComputes the ENS namehash for a given domain name.
cast nonce✅ SupportedRetrieves the nonce of an Ethereum address, useful for determining transaction order.
cast parse-bytes32-address✅ SupportedParses a bytes32 value into an Ethereum address.
cast parse-bytes32-string✅ SupportedParses a bytes32 value into a human-readable string.
cast pretty-calldata✅ SupportedFormats calldata in a human-readable manner.
cast proof❌ Not SupportedRetrieves and displays a Merkle proof for a specific storage slot or account.
cast publish✅ SupportedPublishes a smart contract’s ABI to Etherscan.
cast receipt✅ SupportedFetches and displays the receipt of a transaction, including gas used and status.
cast resolve-name❌ Not SupportedResolves an ENS name to its associated Ethereum address.
cast rpc✅ SupportedSends a raw JSON-RPC request to an Ethereum node, allowing low-level interaction.
cast run❌ Not SupportedRuns a script file, such as a .js or .ts file, with access to Cast functions.
cast selectors❌ Not SupportedFetches the function selectors for a given contract or ABI.
cast send✅ SupportedSends a transaction to the blockchain, including smart contract interactions.
cast send –create✅ SupportedSends a transaction that creates a new contract on the blockchain.
cast shl✅ SupportedPerforms a bitwise left shift on the provided input.
cast shr✅ SupportedPerforms a bitwise right shift on the provided input.
cast sig✅ SupportedOutputs the Keccak-256 hash of a function signature.
cast sig-event✅ SupportedOutputs the Keccak-256 hash of an event signature.
cast storage✅ SupportedFetches and displays the raw storage value of a contract at a specific slot.
cast storage-root❌ Not SupportedFetch the storage root hash for a given account
cast to-ascii✅ SupportedConverts a hexadecimal string to an ASCII string.
cast to-base✅ SupportedConverts a number to a different base (e.g., from decimal to hexadecimal).
cast to-bytes32✅ SupportedConverts input data to a bytes32 format.
cast to-check-sum-address✅ SupportedConverts an Ethereum address to a checksummed format, which includes capital letters for error detection.
cast to-dec✅ SupportedConverts input data to a decimal number.
cast to-fixed-point✅ SupportedConverts input data to a fixed-point number representation.
cast to-hex✅ SupportedConverts input data to a hexadecimal format.
cast to-hexdata✅ SupportedConverts input data to hex-encoded binary data.
cast to-int256✅ SupportedConverts input data to a signed 256-bit integer.
cast to-rlp✅ SupportedEncodes input data in Recursive Length Prefix (RLP) format.
cast to-uint256✅ SupportedConverts input data to an unsigned 256-bit integer.
cast to-unit✅ SupportedConverts ether or wei into different units, like gwei or finney.
cast to-utf8✅ SupportedConverts a hexadecimal string to a UTF-8 encoded string.
cast to-wei✅ SupportedConverts ether or other units into wei, the smallest unit of ether.
cast tx✅ SupportedFetches and displays details of a specific Ethereum transaction.
cast upload-signature✅ SupportedUploads a function or event signature to the 4byte.directory.
cast wallet✅ SupportedA suite of wallet-related commands, allowing you to manage Ethereum wallets, create new ones, sign transactions, and more.
cast wallet new✅ SupportedGenerates a new Ethereum wallet with a private key and address.
cast wallet new-mnemonic✅ SupportedCreates a new wallet using a mnemonic phrase, which can be used to recover the wallet later.
cast wallet vanity✅ SupportedGenerates a new wallet with a custom, vanity address (e.g., one that starts with specific characters).
cast wallet address✅ SupportedOutputs the Ethereum address associated with a given private key.
cast wallet sign✅ SupportedSigns a message or transaction using the private key of a specified wallet.
cast wallet sign-auth✅ SupportedSigns an authorization message with a private key, often used in authentication workflows.
cast wallet verify✅ SupportedVerifies a signed message, confirming that it was signed by the holder of the private key associated with a specific address.
cast wallet import✅ SupportedImports an Ethereum wallet using a private key or mnemonic phrase.
cast wallet list✅ SupportedLists all wallets stored in a specific keystore.
cast wallet private-key✅ SupportedOutputs the private key associated with a given wallet, provided proper authentication.