Virtual TestNets are live! ⚡️ Test and stage dapps on real-time production data.  Schedule Office Hours

DevNets with Foundry

DevNets with Foundry

Setting up DevNet for a Foundry project

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:

  1. Initialize a dummy Foundry project.
forge init
  1. Use the forge create command 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: