Contract Deployment(Remix)

Already know what you're doing?

  • RPC URL: https://rpc.matchain.io

  • ChainID: 698

  • Bridge or request gas sponsorship from our team

What is Remix?

Remix Project is a robust set of tools that can be used by individuals of any skill level throughout the entire process of developing contracts, and it also serves as an educational platform for learning and experimenting with Ethereum.

Getting started

  1. Visit Remix ↗

  2. Navigate to the File Explorer and click the contract button in the top left to create a Smart Contract

  3. enter a name for the contract for example: test.sol

  4. Input your smart contract or use the sample contract below.

    // SPDX-License-Identifier: MIT
    // compiler version must be greater than or equal to 0.8.17 and less than 0.9.0
    pragma solidity ^0.8.17;
        contract HelloWorld {    
        string public greet = "Hello World!";
    }
  5. Navigate to the Solidity Compiler sidebar option and click Compile.'

If you didn't get any errors lets proceed with deploying it onto the blockchain. But first:

Danger!

It is very dangerous to use a wallet with valuable assets for development. You could easily write code with a bug that transfers the wrong amount of the wrong token to the wrong address. Transactions cannot be reversed once sent!

-> Be safe and use separate wallets for separate purposes.

Deploying Your Smart Contract

Once you have written your Smart Contract in Remix, you can navigate to the sidebar option to Compile your contract.

  1. First we need to navigate to the Deploy & ran transactions sidebar option.

  2. Change the top ENVIRONMENT dropdown from "Remix VM" to "Injected Web3"

  3. This will take you to MetaMask - Press Connect in MetaMask to allow Remix access.

  4. Click Deploy button, and Confirm the transaction in MetaMask.

  5. Deploy done!

Congradulations youve deployed your first contract on Matchain!

Last updated

Logo

All Rights Reserved © 2024 Matchain