Complete W Chain Development Setup (Using Remix IDE)

W Chain provides a developer-friendly blockchain environment for building decentralized applications. This technical guide walks you through setting up your development environment and deploying your first smart contract on W Chain Testnet using Remix IDE. Perfect for developers getting started with W Chain development.

Video Tutorial

Do you prefer learning by watching? Check out our complete video walkthrough of this setup process. Follow along as we guide you through every step of deploying your first smart contract on W Chain Testnet.

▶️ Watch the Video Guide

What You Will Do
  • Set up MetaMask wallet and connect to W Chain Testnet.
  • Get test tokens from the W Chain team via Telegram community.
  • Write and deploy your first smart contract using Remix IDE.
  • Verify deployment and interact with your contract.
What You Will Need
  • Chrome, Firefox, or Brave browser.

  • MetaMask browser extension.

  • Basic understanding of smart contracts and Solidity.

  • Access to W Chain Telegram community for testnet tokens.

Steps to follow:
Step 1: Set Up MetaMask
  1. Install MetaMask from the Chrome Web Store.
  2. Create a new wallet and securely save your seed phrase.
  3. Set a strong password.
  1. Open MetaMask and click the network dropdown.

2. Click the “Custom” tab in the network selection dialog.

3. Click “Add custom network” at the bottom.

4. Enter these network details:

5. Click “Save” and switch to W Chain Testnet.
  1. Copy your wallet address from MetaMask.

  2. Join the W Chain Telegram community: https://t.me/official_wchain.

  3. Request test tokens by sharing your wallet address with the team.

  4. Wait for the team to send WCO tokens to your wallet.

  5. Check your MetaMask balance to confirm tokens received.

  1. Go to remix.ethereum.org.

  2. In the file explorer, right-click the “contracts” folder.

  3. Create new file: HelloWorld.sol.

4. Paste this code:

Example: HelloWorld.sol

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

contract HelloWorld {
    string public greet = "Hello, W Chain!";
    
    function setGreet(string memory _greet) public {
        greet = _greet;
    }
    
    function getGreet() public view returns (string memory) {
        return greet;
    }
}
  
  1. Click the “Solidity Compiler” tab (left sidebar).

2. Set the compiler version to 8.19 from the dropdown.

3. In Advanced Configurations, set EVM Version to London.

4. Click “Compile HelloWorld.sol”.

5. Look for green checkmark confirming successful compilation.

1. Click “Deploy & Run Transactions” tab.

2. Select “Injected Provider – MetaMask” as environment.

3. Connect MetaMask when prompted.

4. Ensure MetaMask shows “W Chain Testnet”.

5. Click “Deploy” and confirm transaction in MetaMask.

6. Wait for deployment confirmation. In the console, you will see a green tick along with status of the deployment.

Verify on Blockchain:
  1. Copy contract address from Remix’s “Deployed Contracts” section.
    Our contract address for this guide is 0x96562cFc98A510F4fF6da6733B9dfDB40FD93a1b

2. Visit W Chain Testnet Explorer.
3. Search your contract address to view deployment.

Test Your Contract:
  1. In Remix, expand your deployed contract.
  2. Click blue “greet” button to read current message. It should say “Hello, W Chain!”

3. Use “setGreet” function to change the message (costs gas). For this guide, let’s change the text to “W Chain is a hybrid blockchain!” Type the text into the “setGreet” input box and click on it.

4. Confirm the transaction in metamask, it will cost some gas fees to make the change. Let’s verify our contract call on block explorer:

5. Click “greet” again to see your updated message.

6. Additional Resources

7. Final Thoughts

You have successfully deployed your first smart contract on W Chain! This foundation enables you to build more complex decentralized applications on our blockchain. The development workflow you have learned – compile, deploy, verify – applies to any smart contract you’ll build.

Start building the decentralized future on W Chain!