Remix is a browser-based IDE (Integrated Development Environment) for developing Solidity contracts. This document will cover connecting Remix with Klaytn. If you want to know more about how to use Remix, please refer toRemix docs or Klaytn IDE, which was derived from Remix.
Setup EVM version
Klaytn supports contracts written in Solidity, and is compatible with the London version of EVM. Also, Solidity version 0.8.x and lower are supported in Klaytn. Therefore, to deploy the contract on Klaytn, the contract must be compiled with the London EVM version.
Click solidity compiler, and then choose London EVM version.
Connect to a local plugin
You need a local plugin to connect to the Klaytn network using Remix. The process is described in the following:
Click plugin manager, and then click Connect to a Local Plugin.
Put https://klaytn-remix-plugin.ozys.net in the URL. Use any name what you want in the Plugin Name and Display Name.
If the [Klaytn] tab appears, you are ready to interact with Klaytn.
Setting up the Deployment Environment
Click on the [Klaytn] tab.
Select the appropriate [Environment]. You can select Baobab, Cypress, or Caver provider.
[Baobab]: Connects to the Baobab network
[Cypress]: Connects to the Cypress network
[Caver Provider]: Connects directly to Klaytn node, which supports RPC
You can import keys from private key or Keystore.
Click plus button next to the ACCOUNT.
Then put private key or keystore.
You can also import keys for the feePayer. It only supports private key.
Connecting Klaytn - Remix using EN (Endpoint Node)
Set up an Endpoint Node in the local environment by following the instructions in the EN documents.