Lets deploy your first smart contract
forge create
command. Here’s how to deploy a Counter.sol contract:
forge create
: The command to deploy a contract--rpc-url
: Your network’s RPC URL--private-key
: Your wallet’s private key (never share this!)src/Counter.sol:Counter
: The path to your contract file and the contract name after the colon--broadcast
flag at the end of the function.
Deployer
-> Your public addressDeployed
to -> Deployed contract addressTransaction hash
-> Transaction that we just signed above ^