Skip to main content

Module cmd

Module cmd 

Source
Expand description

cast subcommands.

All subcommands should respect the foundry_config::Config. If a subcommand accepts values that are supported by the Config, then the subcommand should implement figment::Provider which allows the subcommand to override the config’s defaults, see foundry_config::Config.

ModulesΒ§

access_list
artifact
auth πŸ”’
b2e_payload
Command Line handler to convert Beacon block’s execution payload to Execution format.
bal
batch_mktx
cast batch-mktx command implementation.
batch_send
cast batch-send command implementation.
bind
call
call_overrides
Shared eth_call state and block override options.
constructor_args
create2
creation_code
da_estimatebase or optimism
Estimates the data availability size of a block for opstack.
erc20
erc4626
estimate
events
find_block
interface
keychain
logs
miner πŸ”’
mktx
receive_policy
rpc
run
safe
send
storage
storage_credits
tempo
tempo_policy_args πŸ”’
tip20
tip403
trace
txpool
vaddr
wallet

ConstantsΒ§

MAX_CONCURRENT_RPC_REQUESTS πŸ”’

FunctionsΒ§

confirm_continue πŸ”’
Asks whether to continue after a warning, printing Aborted. when the user declines.
disassemble πŸ”’
fetch_code_via_rpc πŸ”’
Fetches the non-empty code of addresses at block with bounded concurrency, warning about addresses whose code cannot be fetched.
load_cast_config_and_evm_opts πŸ”’
Loads Cast’s config and applies its normalized network to the EVM options.
print_json_or πŸ”’
Prints json pretty-printed (un-enveloped) in JSON mode, plain otherwise.
print_raw_line πŸ”’
Prints a raw line to stdout, bypassing the shell verbosity layer so --quiet does not suppress it.
print_result_line πŸ”’
Prints the primary result of a command: a JSON envelope in --json mode, otherwise a raw line that bypasses the shell verbosity layer so --quiet does not suppress it.
resolve_transaction_network πŸ”’
Resolves the RPC request family before typed transaction construction.
rpc_provider πŸ”’
Loads the config for rpc and builds the default provider from it.
validate_base_transaction_options πŸ”’ base
Rejects blob options before Base’s transaction builder can discard them.
validate_tempo_network πŸ”’
Validates a Tempo transaction requirement against an explicit execution family.