Deploy with Remix

As with all EVMs, it is possible to implement a smart contract with Remix. Remix Online IDE is a powerful toolset for developing, deploying, debugging, and testing Ethereum and EVM-compatible smart contracts.

It requires no setup and has a flexible, intuitive user interface. There is no need for any local environment settings for deploying solidity smart contracts on LaChain. You only need to have a browser-based Web3 to be able to deploy.

Steps:

  1. Select the compiler version in the Solidity compiler page. In this example we use 0.8.18.

  2. Write smart contract:

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.18;

contract HelloWorld {

function helloWorld() public pure returns (string memory) {

return "Hello World!";

}

}

  1. Select "HelloWorld" from the contract drop-down menu.

  2. Connect your browser-based Web3 wallet to LaChain or LaTestnet. The selected address must have funds in native coin to be able to perform the deploy.

  3. Select Injected Provider in the Environment dropdown into Deployment Page. Confirm connection request.

Press on the "Deploy" button which would generate another wallet popup that requires transaction confirmation. Done!

Last updated