# Registration Using Remix

This guide is based on the contract address and amount supplied. Take this guide as a reference and type in the exact numbers and address as told.

### MetaMask

* Networks

```json
KLAYTN : https://public-en-cypress.klaytn.net
```

* Add Network from the networks dropdown if needed

<figure><img src="/files/svyBG2t5lxgVcSwqy3wc" alt=""><figcaption></figcaption></figure>

* Open Networks again and select the network you added

## [Remix IDE](https://remix.ethereum.org/)

Remix IDE - an online IDE to develop smart contracts.

* [Docs](https://remix-ide.readthedocs.io/en/latest/index.html)
* Download abi files

{% file src="/files/FaKvJ0AGhH1SYTbdR09h" %}
Layer 1 means original token platforms (ex. KSP's Layer 1 => KLAYTN)
{% endfile %}

{% file src="/files/wrR9MRxlL8XiVzE8d35c" %}
ft means Fungible Token (ERC-20, KIP-7)
{% endfile %}

* Load abi files into Remix IDE

<div align="left"><figure><img src="/files/5oq63GVqrm8MXnMksQJb" alt=""><figcaption></figcaption></figure></div>

* Select ft.abi

<div align="left"><figure><img src="/files/CJ2hYXfpPxZjy9M6Lp5U" alt=""><figcaption></figcaption></figure></div>

* Approve Token
  * Select Deploy & Run Transaction on left bar
  * Select Injected Web3 for Environment&#x20;
    * For Metamask
    * Check chainID (ex. KLAYTN : 8217)
  * Put your token address and Load Contract (ex. KSP :  0xc6a2ad8cc6e4a7e08fc37cc5954be07d499e7654)
  * Put spender and the amount to be bridged&#x20;
    * In this case KLAYTN Layer 1 contract : 0x9Abc3F6c11dBd83234D6E6b2c373Dfc1893F648D
    * If your original token is on a chain other than KLAYTN, please refer to the [Layer 1 contract addresses](broken://pages/7Xbz9zj23T8zpbmhKnd9)
  * Click transact button

<div><figure><img src="/files/MANJLQjywI9R19WCTay4" alt=""><figcaption></figcaption></figure> <figure><img src="/files/sf6aAFMyPIYswFZwiEUo" alt=""><figcaption><p>Updated dropdown menu<br>Select [Injected Provider - MetaMask]</p></figcaption></figure></div>

* Send Transaction using Metamask

<div align="left"><figure><img src="/files/3jfUJyk3zGw2YVrLdZy1" alt=""><figcaption><p>choose edit</p></figcaption></figure> <figure><img src="/files/I9Ba9dacRT36EJdV7kFW" alt=""><figcaption><p>edit gas fee</p></figcaption></figure> <figure><img src="/files/OHSgiT5fk9rcxLoS7BVw" alt=""><figcaption><p>make sure priority fee and fee to 750</p></figcaption></figure></div>

* Bridge Token
  * Load the Layer 1 contract referring to the Approve Token step
  * KLAYTN Layer 1 contract : 0x9Abc3F6c11dBd83234D6E6b2c373Dfc1893F648D
  * Get ChainId for toChain (Use MATIC for POLYGON due to predefined bridge rules)
  * Put chainId to check if toChain is a supported chain
  * Put chainId to check the bridge fee to toChain
    * If chainFee is zero, then value set 0
    * if not, you must put chainFee in VALUE. (ether = 10^18 wei)
  * Dropdown depositToken, fill params and click transact
    * token : your token address \
      (ex. KSP : 0xc6a2ad8cc6e4a7e08fc37cc5954be07d499e7654)
    * toAddr : address for receive bridged token
    * amount : 1 \
      (ex. 0.04 KSP = 40000000000000000, decimal = 18)\
      Basically, you are sending the minimum amount to register the token, 1/10^18 since the contract is based on the standard of decimal 18
  * Send Transaction referring to the Send Transaction using Metamask step
  * You can check the bridged token by searching for toAddr in toChain's explorer

<figure><img src="/files/ScGT1CUjtnwdlSR2Tr6M" alt=""><figcaption></figcaption></figure>

<div align="center"><figure><img src="/files/gdUysKhy387fMe7BdXFW" alt=""><figcaption><p>If the chainFee shows any gas fee, put the same amount in the GAS FEE value</p></figcaption></figure></div>

<figure><img src="/files/7z7O3OdmGPmU6VaJyyRU" alt=""><figcaption><p>When the transaction is completed, tochain's explorer shows the result as above</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bridge-docs.orbitchain.io/token-registration-for-bridging/registration-using-remix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
