DevNets with Foundry
Foundry is a Rust-based Ethereum smart contract development framework that provides an easy-to-use CLI for developers.
Make sure you have everything installed first:
To set up a DevNet with Foundry, follow these steps:
- Initialize a dummy Foundry project.
- Use the
forge createcommand to deploy your smart contracts.
forge create --rpc-url=$(tenderly devnet spawn-rpc --template <YOUR_TEMPALATE_SLUG> --project <YOUR_PROJECT_SLUG>) ./src/Counter.sol:Counter --unlocked --from 0x0000000000000000000000000000000000000000
Read more on automating the Spawning of the DevNet RPC: