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
  • Compile Smart Contract
  • Run Deployment Script
Edit on GitHub
  1. Getting Started
  2. Hardhat

Deploying Smart Contract

Compile your Solidity smart contract using Hardhat, then deploy it to SupraEVM by running the deployment script, ensuring successful contract execution on the network.

PreviousWrite Smart ContractNextFoundry

Compile Smart Contract

Use Hardhat to compile your Solidity smart contract, ensuring it is error-free and ready for deployment on SupraEVM.

  • Compile the contract using Hardhat:

npx hardhat compile

Run Deployment Script

Execute the Hardhat deployment script to deploy your smart contract on SupraEVM, ensuring it is live and ready for interaction.

  • Run the deployment script:

npx hardhat run --network supra scripts/deploy.js