Fractal
  • Overview
  • Basics
    • Architecture
  • Key Concepts
    • Fractal Confluence: The EVM Layer
    • The Confluence Bridge
    • Fractal Spring: The UTXO Layer
      • Concepts
      • Technical Specifications
    • Staking
      • Overview
      • EVM Staking
        • UTXO Staking and EVM Staking
      • Consensus
      • Rewards
      • Penalties
  • Developers
    • Acquire Testnet FRA
    • EVM Tools & Tutorials
      • Contract Deployment
        • Ganache
        • Hardhat
        • Remix
        • Truffle
        • Waffle
      • The Graph
    • Developer SDKs
      • UTXO Native Chain SDK
        • Fractal Spring (UTXO Layer) SDK Installation
        • Developer Tools
          • Fractal CLI Tool
        • UTXO API Reference
          • Account
          • Keypair
          • Network
          • Asset
          • Staking
          • Transaction
          • Helpers
      • The Confluence Bridge SDK
    • EVM References
      • Metamask
      • Local Development Network Setup
      • EVM API Reference
      • Precompiled Contracts
  • Network Settings
    • Contract Addresses
    • Network Settings
  • User Guides
    • Fractal Wallet Guides
      • MetaMask
        • Download
        • Configure (Auto)
        • Configure (Manual)
      • Fractal Wallet
        • Download
        • New Wallet
        • Transfer Tokens in the Fractal Wallet
        • The Confluence Bridge
        • Adding Custom Assets to the Fractal Wallet
        • Manage Assets
      • Ledger Hardware Wallet
    • Acquire FRA
    • Explore Testnet
    • Acquire FRA (Testnet)
    • Stake FRA
    • How to Use Block Explorers
    • Bridging Tokens to Fractal
  • Validator Materials
    • Validator Setup Guides
      • System Requirements
      • Acquire a Server
      • Validator Toolbox Setup
        • New Build
        • Existing Build
        • Additional Info
      • Manual Setup
      • Automated Setup (Deprecated)
    • Upgrade Guides
      • Node Upgrade (Toolbox)
      • Node Upgrade (Manual)
      • fn CLI Upgrade (Wallet)
    • Operational Guides
      • Emergency Recovery
      • Data Backup
      • CLI Staking
Powered by GitBook
On this page
  1. Developers
  2. EVM Tools & Tutorials
  3. Contract Deployment

Remix

PreviousHardhatNextTruffle

Last updated 1 year ago

Overview

Developers can also use Remix IDE to interact with Fractal. Remix IDE is one of the most commonly used development environments for Ethereum smart contracts. It can provide network-based solutions to quickly compile and deploy Solidity and Vyper code on local VMs or external Web3 providers (such as MetaMask). By combining the two tools, developers can quickly start deployment on Fractal.

How to start using Remix

Now, we can start Remix to use more advanced features of Fractal.

  • First, we open a new tab and enter to open Remix.

  • In the main screen, click Environments, select Solidity to configure Remix for Solidity development, and finally open the File Explorers screen. We need to create a new folder to store the Solidity smart contract.

  • Click the "+" button under File Explorers, then enter "MyContract.sol in the pop-up window, and paste the following smart contract to the pop-up editing window

pragma solidity ^0.7.5;

contract MyContract {
    //Your logic code
}

Deploy contract

We will show how to use Remix to deploy smart contracts on Fractal through the following basic contracts:

  1. After the compilation is complete, we can go to the "Deploy & Run Transactions" tab. First, you need to set the environment to "Injected Web3".

  2. You need to use the provider imported by MetaMask, and deploy the contract to the network connected to it through the provider. In this example, it is the Fractal Devnet test network.

  3. We will use a MetaMask account with an asset balance to deploy the contract. It can be funded through our testnet faucet () and then deployed on Fractal Devnet.

  4. Next, enter Test Contract in the constructor and click "Deploy".

  5. MetaMask pop-up window will display transaction-related information, we need to click "confirm" to sign.

6. After the transaction is confirmed, the contract will appear in the "Deployed Contracts" column of Remix. From here, you can interact with the contract function.

​
​
https://remix.ethereum.org/
​
refer to this guide