Deploying a smart contract using Remix

Tutorial: Deploying Smart Contracts on Biturbo Using Remix

This tutorial guides you through deploying a smart contract on the Biturbo network using Remix, an online Ethereum IDE.

Prerequisites

  1. MetaMask: Installed and configured for the Biturbo Testnet.

  2. Remix IDE: Accessible via Remix.

Step-by-Step Guide

Step 1: Connect MetaMask to Biturbo Testnet

  1. Open MetaMask.

  2. Add the Biturbo Testnet network:

    • Network Name: Biturbo Testnet

    • New RPC URL: https://test-rpc.biturbo.io

    • Chain ID: 725019

    • Currency Symbol: TBO

    • Block Explorer URL: https://testnet.biturboscan.io

Step 2: Access Remix IDE

  1. Navigate to Remix IDE.

  2. In the file explorer, create a new file named SimpleStorage.sol.

Step 3: Write the Smart Contract

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

contract SimpleStorage {
    uint256 private storedData;

    function set(uint256 x) public {
        storedData = x;
    }

    function get() public view returns (uint256) {
        return storedData;
    }
}

Step 4: Compile the Smart Contract

  1. Click on the "Solidity Compiler" tab.

  2. Select the compiler version 0.8.0+.

  3. Click "Compile SimpleStorage.sol".

Step 5: Deploy the Smart Contract

  1. Switch to the "Deploy & Run Transactions" tab.

  2. Ensure the environment is set to "Injected Web3".

  3. MetaMask will prompt you to connect; choose the Biturbo Testnet.

  4. Click "Deploy" and confirm the transaction in MetaMask.

Step 6: Interact with the Smart Contract

  1. Once deployed, the contract will appear in the "Deployed Contracts" section.

  2. Expand the contract to see available functions (set and get).

  3. Use the input field to call set with a value.

  4. Call get to retrieve the stored value.

Summary

You have successfully deployed and interacted with a smart contract on the Biturbo Testnet using Remix. This process leverages the familiar Ethereum development tools, thanks to Biturbo's EVM compatibility.

Last updated