ZONA PROTOCOL
  • Welcome to Zona
  • What is ZONA?
  • Core Concepts
  • Network Architecture
  • Getting Started
    • ◼️Setting Up Wallets
    • ◼️Connecting to Testnet
    • ◼️Faucet Access
    • ◼️ZONA RPC & Chain Info
  • Smart Contract Development
    • ◻️EVM Compatibility Overview
    • ◻️Writing Contracts (Solidity)
    • ◻️Deploying to ZONA with Hardhat
    • ◻️Using Remix on ZONA
    • Advanced Topics
  • ◼️Gas Optimization on ZONA
  • ◼️Custom Modules with ZONA SDK
  • ◼️Security & Auditing Guidelines
Powered by GitBook
On this page
  1. Smart Contract Development

Using Remix on ZONA

Remix IDE is a web-based development environment for writing, compiling, and deploying Solidity smart contracts ideal for fast prototyping on EVM-compatible chains like ZONA.

With ZONA's EVM compatibility, you can deploy contracts to ZONA Testnet or Mainnet directly from Remix using MetaMask.


🧰 What You Need

  • A browser with MetaMask installed

  • Testnet ZONA tokens in your wallet

  • RPC & Chain ID added to MetaMask (see: Connecting to Testnet)

  • Remix IDE: https://remix.ethereum.org


🪜 Step-by-Step: Deploying to ZONA via Remix


1. Open Remix

Go to https://remix.ethereum.org


2. Write or Import Your Contract

Use or paste a Solidity contract into the editor. Example:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract HelloZona {
    string public message = "Hello from ZONA!";
}

3. Compile the Contract

  • Go to the Solidity Compiler tab on the left

  • Select version 0.8.20 (or your contract version)

  • Click Compile


4. Connect MetaMask to ZONA

  • Open MetaMask

  • Switch to ZONA Testnet (you should’ve added this network earlier)

  • Make sure your wallet has test ZONA tokens


5. Deploy via Injected Provider

  • Go to the Deploy & Run Transactions tab

  • Under Environment, choose Injected Provider - MetaMask

  • Select your contract from the dropdown

  • Click Deploy

MetaMask will pop up and ask you to confirm the transaction. After confirmation, Remix will display the deployed contract address.


✅ You're Live on ZONA

Once deployed, you can:

  • Call public functions

  • Read and write storage

  • Interact with your contract in the Remix UI

  • View it on ZONA Testnet Explorer (Coming Soon)


🧠 Tips

  • Use low gas (~100k–300k) as ZONA Testnet has low fees

  • Deploy from a funded MetaMask wallet

  • You can also import OpenZeppelin contracts via Remix Libraries


Remix + ZONA = Instant smart contract deployment with zero setup.

PreviousDeploying to ZONA with HardhatNextAdvanced Topics

Last updated 14 days ago

◻️