Ethereum
Interact with Ethereum using Foundry
Setup Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryupexport ETH_RPC_URL="http://10.0.0.1:12345/path/to/rpc"Investigating a Chain
# Get the Ethereum chain id
cast chain-id
# Get the symbolic name of the current chain
cast chain
# Get the current client version
cast client
# Get the current gas price
cast gas-price
# Get the latest block number
cast block-number
# Get information about a block
cast blockInvestigating Account
Investigating Contract
Call Functions
Send Transactions
Last updated