All Products

DevNets
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.
example
forge init
  1. Use the forge create command to deploy your smart contracts.
example
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: