Magnet
  • Welcome to Magnet
  • Overview
    • Magnet Network Features
      • Magnet Coretime
      • Coretime Order Control and Assurance
      • Workflows of Magnet Network
      • Profit Calcuation and Distribution
    • Magnet Stack Features
      • Magnet Stack Coretime Modules
  • Product Guides
    • Setup a Local Node
      • Installing Substrate Dependencies
      • Launching the Local Relay Chain
      • Build the Magnet Node
      • Prepare the parachain Collator
      • Register on the Local Relay Chain
    • Deploy Contracts on Magnet Network
      • EVM Contract Deployment
      • WASM Contract Deployment
      • MoveVM Contract Deployment
    • Bridge Asset
      • Bridging Asset between EVM and Substrate
      • Bridging Asset with XCM
    • Develop Coretime-Ready chain with Magnet Stack
      • Preparation: Reserve a ParaID
      • Preparation: Generate the Collator's Address
      • Preparation: Purchase Bulk Core
      • Using Magnet Stack : Coretime Configuration
      • Using Magnet Stack : Virtual Machine Configuration
      • Using Magnet Stack : Functional Models
      • Using Magnet Stack : Summary
      • Deployment & Connection to Rocococ
        • Define the collator's address
Powered by GitBook
On this page
  1. Product Guides
  2. Deploy Contracts on Magnet Network

EVM Contract Deployment

Deploying a Standard ERC20 Contract

This document outlines the steps to deploy a standard ERC20 contract using your preferred tooling.

Step 1: Choose a Standard ERC20 Contract

Several readily available standard ERC20 contracts exist online. Choose one based on your specific needs and security considerations.

Step 2: Compile the Contract

Once you have chosen a contract, compile it using the relevant compiler and settings. This may involve using tools like Solidity compiler or Remix.

Step 3: Deploy the Contract

  1. Select the "Deploy & Run Transaction" button. This button is typically located at the bottom of the left toolbar in your development environment.

  2. Choose "WalletConnect" as the connection method.

  3. Connect your Metamask wallet to WalletConnect or Injected Provider .

  4. Metamask is connected to the magnet network. If you need to deploy a contract on the tanssi network, you only need to change the URL to the corresponding port in metamask or other wallets.

  5. This will allow you to sign the transaction and pay the gas fees.

  6. Review the transaction details and confirm the deployment.

Step 4: Add Contract Address to Metamask

  1. Copy the deployed contract address.

  2. Open Metamask and click the "Add Token" button.

  3. Select "Custom Token" and paste the contract address.

  4. Metamask will automatically fetch the token details and display them.

  5. Click "Next" and then "Add Tokens" to confirm.

Step 5: Verify Token Existence

Once you have added the contract address to Metamask, your ERC20 tokens will be visible in your wallet. You can verify their existence by exploring your token balance and interacting with the contract through its functions.

Additional Notes:

  • This is a general guide, and the specific steps may vary depending on your chosen tools and contract implementation.

  • Before deploying the contract, ensure you have sufficient DOT in your Metamask wallet to cover the gas fees.

  • Remember to securely store your private key and handle your tokens responsibly.

PreviousDeploy Contracts on Magnet NetworkNextWASM Contract Deployment

Last updated 9 months ago