> For the complete documentation index, see [llms.txt](https://orbit-1.gitbook.io/bridgedocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://orbit-1.gitbook.io/bridgedocs/token-registration-for-bridging/bridge-to-ton/using-remix-ton.md).

# Using Remix(TON)

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-node-api.klaytnapi.com/v1/cypress
```

* Add Network from the networks dropdown if needed

<img src="/files/Wz6rUUZM2K5BQWKp0ZUR" alt="" data-size="original">

* 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/it2a0uWRVnd4e9C9aIds" %}
Layer 1 means original token platforms (ex. KSP's Layer 1 => KLAYTN)
{% endfile %}

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

* Load abi files into Remix IDE

<img src="/files/aWmBw12BR8HfkEBqSC07" alt="" data-size="original">

* Select ft.abi

<img src="/files/RzSzuTGnYnFJHBt2ZdEo" alt="" data-size="original">

* 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](/bridgedocs/token-registration-for-bridging/reference-layer-1-contracts.md)
  * Click transact button

<div><figure><img src="/files/VERNwaibgf3FPXlQZAVX" alt=""><figcaption></figcaption></figure> <figure><img src="/files/L1ipqYhcS0OfhWEJIqoJ" alt=""><figcaption><p>Updated dropdown menu</p></figcaption></figure></div>

* Send Transaction using Metamask

![choose edit](/files/xFYXj8mlC9zTGPPBJ88N) ![edit gas fee](/files/WtJzcZX6i7WECJSdQGE4) ![make sure priority fee and fee to 750](/files/f4UyItKLP1RH9IcyXf2r)

* Bridge Token
  * Load the Layer 1 contract referring to the Approve Token step
  * KLAYTN Layer 1 contract : 0x9Abc3F6c11dBd83234D6E6b2c373Dfc1893F648D
  * Get ChainId for toChain (Use TON for TON 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 do not need to put chainFee in VALUE. (ether = 10^18 wei)
  * Dropdown depositToken, fill params and click transact
    * token : your token address \
      (ex. KSP : 0xc6a2ad8cc6e4a7e08fc37cc5954be07d499e7654)
    * toAddr : \[Your TON based wallet address that want to receive your token]\
      TON based wallet has different type as we generally use for KIP7. Please refer to the scripts' hashPart for switching your address to 32byte address\
      <https://github.com/jaybbbb/bridge-utils>
    * amount : 1 \
      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

<div align="center"><figure><img src="/files/XFTjypkUpCKrA29kdlXH" alt=""><figcaption></figcaption></figure></div>

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

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