Foundry Book

cast 0.2.0 (56dc746 2022-08-26T00:07:43.474069Z)
Perform Ethereum RPC calls from the comfort of your command line.

USAGE:
    cast <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    --abi-decode               Decode ABI-encoded input or output data [aliases: ad]
    --address-zero             Get zero address [aliases: address-zero, az]
    --calldata-decode          Decode ABI-encoded input data. [aliases: cdd]
    --concat-hex               Concatenate hex strings. [aliases: concat-hex, ch]
    --format-bytes32-string    Formats a string into bytes32 encoding.
    --from-bin                 Convert binary data into hex data. [aliases: from-bin, fb]
    --from-fix                 Convert a fixed point number into an integer. [aliases: from-fix, ff]
    --from-rlp                 Decodes RLP encoded data. Input must be hexadecimal.
    --from-utf8                Convert UTF8 text to hex. [aliases: from-utf8, --from-ascii, from-ascii, fu, fa]
    --from-wei                 Convert wei into an ETH amount. Consider using --to-unit. [aliases: from-wei, fw]
    --hash-zero                Get zero hash [aliases: hash-zero, hz]
    --max-int                  Get the maximum i256 value. [aliases: max-int, maxi]
    --max-uint                 Get the maximum u256 value. [aliases: max-uint, maxu]
    --min-int                  Get the minimum i256 value. [aliases: min-int, mini]
    --parse-bytes32-string     Parses a string from bytes32 encoding.
    --to-ascii                 Convert hex data to an ASCII string. [aliases: to-ascii, tas, 2as]
    --to-bytes32               Right-pads hex data to 32 bytes. [aliases: to-bytes32, tb, 2b]
    --to-checksum-address      Convert an address to a checksummed format (EIP-55). [aliases: to-checksum-address,
                                   --to-checksum, to-checksum, ta, 2a]
    --to-dec                   Convert hex value into a decimal number. [aliases: to-dec, td, 2d]
    --to-fix                   Convert an integer into a fixed point number. [aliases: to-fix, tf, 2f]
    --to-hex                   Convert an integer to hex. [aliases: to-hex, th, 2h]
    --to-hexdata               Normalize the input to lowercase, 0x-prefixed hex. See --help for more info.
                                   [aliases: to-hexdata, thd, 2hd]
    --to-int256                Convert a number to a hex-encoded int256. [aliases: to-int256, ti, 2i]
    --to-rlp                   RLP encodes hex data, or an array of hex data
    --to-uint256               Convert a number to a hex-encoded uint256. [aliases: to-uint256, tu, 2u]
    --to-unit                  Convert an ETH amount into another unit (ether, gwei or wei). [aliases: to-unit,
                                   tun, 2un]
    --to-wei                   Convert an ETH amount to wei. Consider using --to-unit. [aliases: to-wei, tw, 2w]
    4byte                      Get the function signatures for the given selector from
                                   <https://sig.eth.samczsun.com>. [aliases: 4, 4b]
    4byte-decode               Decode ABI-encoded calldata using <https://sig.eth.samczsun.com>. [aliases: 4d, 4bd]
    4byte-event                Get the event signature for a given topic 0 from <https://sig.eth.samczsun.com>.
                                   [aliases: 4e, 4be]
    abi-encode                 ABI encode the given function argument, excluding the selector. [aliases: ae]
    access-list                Create an access list for a transaction. [aliases: ac, acl]
    age                        Get the timestamp of a block. [aliases: a]
    balance                    Get the balance of an account in wei. [aliases: b]
    basefee                    Get the basefee of a block. [aliases: ba, fee]
    block                      Get information about a block. [aliases: bl]
    block-number               Get the latest block number. [aliases: bn]
    call                       Perform a call on an account without publishing a transaction. [aliases: c]
    calldata                   ABI-encode a function with arguments. [aliases: cd]
    chain                      Get the symbolic name of the current chain. [aliases: ch]
    chain-id                   Get the Ethereum chain ID. [aliases: ci, cid]
    client                     Get the current client version. [aliases: cl]
    code                       Get the bytecode of a contract. [aliases: co]
    completions                Generate shell completions script [aliases: com]
    compute-address            Compute the contract address from a given nonce and deployer address. [aliases: ca]
    estimate                   Estimate the gas cost of a transaction. [aliases: e]
    etherscan-source           Get the source code of a contract from Etherscan. [aliases: et, src]
    find-block                 Get the block number closest to the provided timestamp. [aliases: f]
    gas-price                  Get the current gas price. [aliases: g]
    generate-fig-spec          Generate Fig autocompletion spec. [aliases: fig]
    help                       Print this message or the help of the given subcommand(s)
    index                      Compute the storage slot for an entry in a mapping. [aliases: in]
    interface                  Generate a Solidity interface from a given ABI. [aliases: i]
    keccak                     Hash arbitrary data using keccak-256. [aliases: k]
    lookup-address             Perform an ENS reverse lookup. [aliases: l]
    namehash                   Calculate the ENS namehash of a name. [aliases: na, nh]
    nonce                      Get the nonce for an account. [aliases: n]
    pretty-calldata            Pretty print calldata. [aliases: pc]
    proof                      Generate a storage proof for a given storage slot. [aliases: pr]
    publish                    Publish a raw transaction to the network. [aliases: p]
    receipt                    Get the transaction receipt for a transaction. [aliases: re]
    resolve-name               Perform an ENS lookup. [aliases: rn]
    rpc                        Perform a raw JSON-RPC request [aliases: rp]
    run                        Runs a published transaction in a local environment and prints the trace. [aliases:
                                   r]
    send                       Sign and publish a transaction. [aliases: s]
    shl                        Perform a left shifting operation
    shr                        Perform a right shifting operation
    sig                        Get the selector for a function. [aliases: si]
    storage                    Get the raw value of a contract's storage slot. [aliases: st]
    tx                         Get information about a transaction. [aliases: t]
    upload-signature           Upload the given signatures to <https://sig.eth.samczsun.com>. [aliases: ups]
    wallet                     Wallet management utilities. [aliases: w]

Find more information in the book: <http://book.getfoundry.sh/reference/cast/cast.html>