How do I withdraw tokens to my on-chain account?

Withdrawal without closing

Example

1. Initial withdrawal from the channel into the Raiden account

The first step is to withdraw the tokens from your channel into your Raiden account using the upward arrow in the respective channel. The withdrawal tx is happening on-chain to verify the accuracy of the channel balance. This requires a rough 104,000 gas, which at the current price of 85 gwei, represents an amount of approximately $30.

These tx costs are directly deducted from Alice’s Metamask account. At this stage, the tokens are withdrawn from her channel into her Raiden account.

2. Send ETH to the Raiden account to cover the token transfer fees

Additionally, sending ETH to has a standard tx cost of 21,000 gas. It represents around $6 automatically deducted from her Metamask account.

3. Transfer tokens from the Raiden account into the Metamask account

This tx will use up the previously transferred 0.00306 ETH and after validation, she will now be able to see her DAI in on Metamask.

All in all, transferring her DAI from Raiden to her Metamask account has cost Alice roughly 47$. If she was holding a total value of DAI equal or lower than $47 she would have refrained from any action as the withdrawal would not be worth it.

If you are using the Raiden Python client with the WebUI

If you still want to close and settle your channel, you simply select ‘Close Channel’, which closes, and initiates the settlement and token transfer to your wallet after the maximum 3 hour time-out.

Withdrawing RDN tokens from the UDC into your Metamask account

  1. Clicking on the ‘Manage UDC Token’ section in your ‘Account’ settings will initiate the process and communicate to the network that you plan on withdrawing those RDN tokens. This is an on-chain tx (#27), which needs a certain amount of gas fees deducted from your Metamask account.

After this tx is complete, you will be able to see your remaining unused RDN tokens in your Raiden account.

2. Before transferring the RDN tokens to your Metamask account, make sure you have enough ETH in your Raiden account to cover the tx costs of sending RDN to your Metamask account. (approximately 36,000 gas)

3. Once you have the ETH in your account, initiate the withdrawal (#28). The related tx fees will be deducted from your Metamask account.

We know the process is not straightforward yet, but it is going to improve in the near future. Do not hesitate to reach out for any support or remaining questions. We’re happy to help!

Do you need more information?

Do you need additional support?

Do not forget to join our communities on Twitter and Telegram.

The Raiden project is led by brainbot labs Est.

Disclaimer: Please note, that even though we do our best to ensure the quality and accuracy of the information provided, this publication may contain views and opinions, errors and omissions for which the content creator(s) and any represented organization cannot be held liable. The wording and concepts regarding financial terminology (e.g. “payments”, “checks”, “currency”, “transfer” [of value]) are exclusively used in an exemplary way to describe technological principles and do not necessarily conform to the real world or legal equivalents of these terms and concepts.

--

--

Fast, cheap, scalable token transfers for Ethereum. The Raiden project is led by brainbot labs Est.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store