- Creating a New Project
- Working on an Existing Project
- Clone a Verified Contract on Chain
- Dependencies
- Soldeer
- Project Layout
- Configuring with
foundry.toml
- Continuous Integration
- Integrating with VSCode
- Shell Autocompletion
- Static Analyzers
- Integrating with Hardhat
- Vyper support
- Best Practices
- Creating an NFT with Solmate
- Docker and Foundry
- Testing EIP-712 Signatures
- Solidity Scripting
- Deterministic deployment using CREATE2
- Forking Mainnet with Cast and Anvil
- Learning Foundry Videos
- FAQ
- Help us improve Foundry
- References
- CLI Reference
forge
forge bind
forge bind-json
forge build
forge cache
forge clean
forge clone
forge compiler
forge completions
forge config
forge coverage
forge create
forge debug
forge doc
forge eip712
forge flatten
forge fmt
forge geiger
forge generate
forge generate-fig-spec
forge init
forge inspect
forge install
forge remappings
forge remove
forge script
forge selectors
forge snapshot
forge soldeer
forge test
forge tree
forge update
forge verify-bytecode
forge verify-check
forge verify-contract
cast
cast 4byte
cast 4byte-decode
cast 4byte-event
cast abi-decode
cast abi-encode
cast access-list
cast address-zero
cast admin
cast age
cast artifact
cast balance
cast base-fee
cast bind
cast block
cast block-number
cast call
cast calldata
cast calldata-decode
cast chain
cast chain-id
cast client
cast code
cast codehash
cast codesize
cast completions
cast compute-address
cast concat-hex
cast constructor-args
cast create2
cast creation-code
cast decode-eof
cast decode-transaction
cast disassemble
cast estimate
cast etherscan-source
cast find-block
cast format-bytes32-string
cast format-units
cast from-bin
cast from-fixed-point
cast from-rlp
cast from-utf8
cast from-wei
cast gas-price
cast generate-fig-spec
cast hash-message
cast hash-zero
cast implementation
cast index
cast index-erc7201
cast interface
cast keccak
cast logs
cast lookup-address
cast max-int
cast max-uint
cast min-int
cast mktx
cast namehash
cast nonce
cast parse-bytes32-address
cast parse-bytes32-string
cast parse-units
cast pretty-calldata
cast proof
cast publish
cast receipt
cast resolve-name
cast rpc
cast run
cast selectors
cast send
cast shl
cast shr
cast sig
cast sig-event
cast storage
cast storage-root
cast string-decode
cast to-ascii
cast to-base
cast to-bytes32
cast to-check-sum-address
cast to-dec
cast to-fixed-point
cast to-hex
cast to-hexdata
cast to-int256
cast to-rlp
cast to-uint256
cast to-unit
cast to-utf8
cast to-wei
cast tx
cast upload-signature
cast wallet
anvil
chisel
forge
Commandscast
Commands- General Commands
- Chain Commands
- Transaction Commands
- Block Commands
- Account Commands
- ENS Commands
- Etherscan Commands
- ABI Commands
- Conversion Commands
- cast format-bytes32-string
- cast from-bin
- cast from-fixed-point
- cast from-rlp
- cast from-utf8
- cast from-wei
- cast parse-bytes32-address
- cast parse-bytes32-string
- cast to-ascii
- cast to-base
- cast to-bytes32
- cast to-dec
- cast to-fixed-point
- cast to-hex
- cast to-hexdata
- cast to-int256
- cast to-rlp
- cast to-uint256
- cast to-unit
- cast to-wei
- cast shl
- cast shr
- Utility Commands
- Wallet Commands
anvil
Referencechisel
Reference- Config Reference
- Cheatcodes Reference
- Environment
warp
roll
fee
getBlockTimestamp
getBlockNumber
difficulty
prevrandao
chainId
store
load
etch
deal
prank
startPrank
stopPrank
readCallers
record
accesses
recordLogs
getRecordedLogs
setNonce
getNonce
mockCall
mockCalls
mockCallRevert
mockFunction
clearMockedCalls
coinbase
broadcast
startBroadcast
stopBroadcast
pauseGasMetering
resetGasMetering
resumeGasMetering
txGasPrice
startStateDiffRecording
stopAndReturnStateDiff
snapshotState
snapshotGas
- Assertions
- Fuzzer
- Forking
- External
- Utilities
- RPC
- Files
- Environment
- Forge Standard Library Reference
- DSTest Reference
- CLI Reference
- Miscellaneous