LogoLogo
  • Overview
  • Getting Started
    • Using Mainnet
    • Wallet Configuration
    • Using DApps
    • Technical Architecture
  • Utilities
    • Fees
    • Bridges
    • Block Explorers
    • Oracles
    • Data Indexer
  • Development
    • Private RPC Providers
    • Contract Deployment(Remix)
    • Contract Deployment(Starton)
    • NFT APIs
    • Account Abstraction
    • Contracts
    • Running Matchain Node
  • Links
    • Network Status
    • Rollup info page
    • Matchain Website
Powered by GitBook
LogoLogo

All Rights Reserved © 2024 Matchain

On this page
  • Already know what you're doing?
  • What is Remix?
  • Getting started
  • Deploying Your Smart Contract

Was this helpful?

  1. Development

Contract Deployment(Remix)

PreviousPrivate RPC ProvidersNextContract Deployment(Starton)

Last updated 5 months ago

Was this helpful?

Already know what you're doing?

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

  • ChainID: 698

  • 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

  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!

Add
Matchain
Bridge
Remix ↗