Join our
Discord!
LogoLogo
SupraScan ExplorerStarKey WalletDiscord
EVM
  • Network
  • Oracles
  • Automation
  • SupraNova
  • Guides
EVM
  • Overview
  • Getting Started
    • Remix IDE
      • Fund Your Wallet
      • Connect StarKey Wallet to Remix
      • Guide to Deploy Smart Contract
    • Hardhat
      • Getting Private Key from StarKey
      • Create Hardhat Project
      • Write Smart Contract
      • Deploying Smart Contract
    • Foundry
      • Getting Private Key from StarKey
      • Create Foundry Project
      • Write Smart Contract
      • Deploying Smart Contract
    • Your First Solidity Contract
  • Network Information
Powered by GitBook
On this page
  • Initialize and Set Up Your Project Directory
  • Configure foundry.toml
Edit on GitHub
  1. Getting Started
  2. Foundry

Create Foundry Project

Initialize and configure a Foundry project for SupraEVM by setting up the directory, configuring the foundry.toml file, and defining the RPC URL, chain ID, and private key for deployment.


Initialize and Set Up Your Project Directory

Create and navigate to your Foundry project directory, similar to Hardhat, to prepare for smart contract development.

forge init foundry-project
cd foundry-project

Configure foundry.toml

Set up the Foundry configuration by specifying the SupraEVM RPC URL, chain ID, and your private key to enable seamless deployment and interaction with smart contracts.

[profile.supra]
rpc_url = "https://rpc-evmstaging.supra.com/rpc/v1/eth"
chain_id = 119
private_key = "0xYourPrivateKey"
PreviousGetting Private Key from StarKeyNextWrite Smart Contract