A guide to help you get started with deploying your smart contracts on Base.
src
directory, which you can replace with your own contracts. For the purposes of this guide, we’ll use the Counter contract provided in /src/Counter.sol
.env
file in your project’s root directory.env
file~/.foundry/keystores
which is not tracked by git.
<contract-path>:<contract-name>
.
.env
file
cast
command to interact with your deployed contract from the command linenumber
storage variable, which will be 0
.
Congratulations! You’ve deployed your smart contracts to Base Sepolia!