Loading video player...
🚀 Deploying a Smart Contract to the Monad Testnet with Foundry | Step-by-Step Guide In this episode, Knox from ProStaking walks through how to deploy your Solidity smart contract to the Monad Testnet using Foundry. We’ll take the Light Switch contract and deployment script we built earlier and publish it on-chain — generating the official contract address your front end will use to interact with Monad. You’ll learn the exact Foundry CLI commands, how to link your RPC endpoint, and how to use your private key to fund the deployment safely and securely. Once deployed, we’ll save the contract address for use in our upcoming Reown AppKit front-end build. 🧠 What You’ll Learn How to deploy a smart contract to the Monad Testnet using forge script How to reference your deployment script (LightSwitch.s.sol) How to specify your RPC endpoint from foundry.toml How to fund and sign deployments with a private key How to retrieve and store the deployed contract address Why the contract address is critical for front-end integration 🧰 Tools & Files Used Foundry (Forge CLI) LightSwitch.sol (smart contract) LightSwitch.s.sol (deployment script) foundry.toml (config with Monad RPC) .env.local (for storing the contract address) 🪙 Pro Tip Always protect your private keys during deployment — use environment variables or secure vaults when moving to production. 🔗 Connect with Knox Follow on X/Twitter → @Knox Validator Infrastructure → Pro Staking ⏱️ Timestamps 0:00 Intro – review of contract & script 0:30 Using forge script to deploy 1:30 Setting RPC endpoint (Monad Testnet) 2:30 Adding private key for deployment 3:00 Successful compile & deploy output 3:40 Copying the contract address 4:00 Saving address to .env.local 4:30 Next steps – front-end integration #Monad #Foundry #SmartContracts #Solidity #BlockchainDevelopment #Web3 #EVM #DApp #ProStaking #Knox #MonadTestnet #CryptoDevelopment