How to withraw tokens from EtherDelta when it's down

in #market7 years ago

Recently we have some issues with EtherDelta. Etherdelta.github.io was down for a moment, later domain was changed to etherdelta.com and even now it's slow and it's used to throw 404 or 500 errors from time to time. It's still quite nice market to use and you don't have to withdraw your tokens right now. You can make it any time and without etherdelta page.

First of all below scenario was tested end-to-end so you don't need to afraid anything but at first try to do the same scenario with some low amount of cash.

Let's assume ED is down right now and I would like to pull from it some PPT tokens. I don't remember how much I have PPT in deposit and first thing it would be nice to check the amount.

Generally we will operate only on few links.
First one in main contract address of EtherDelta:
https://etherscan.io/address/0x8d12a197cb00d4747a1fe03395095ce2a5cc6819
Whole magic of this market is hidden there.

Let's check how many of PPT tokens I had in Deposit of EtherDelta.
Open the page from below link:

  1. https://etherscan.io/address/0x8d12a197cb00d4747a1fe03395095ce2a5cc6819
    Go to Read Smart Contract tab and search for method: balanceOf
    There you have to fill two values; first one is token address, second one is your ED account public address.
    PPT token addres is: 0xd4fa1460f537bb9085d22c7bccb5dd450ef28e3a
    Second value is individual and unique. Next press Query button.

Write down returned value: 10000000000. You'll need it later.
BTW I know that I had 100 PPT in ED deposit. Decimals of PPT is 8. You see what this is? 100 PPT and 8 zeroes is exact value method balanceOf returned.

  1. Open myetherwallet.
    Then open your wallet with public and private keys you know from EtherDelta.

  1. Go to Contracts tab.
    Contract address is: 0x8d12a197cb00d4747a1fe03395095ce2a5cc6819
    Remember? This is the same address which appeared already in this article.

ABI / JSON Interface
can be taken from:
https://etherscan.io/address/0x8d12a197cb00d4747a1fe03395095ce2a5cc6819
tab: Contract Source
Copy WHOLE of Contract ABI text box.

And paste it to MyEtherwallet.

BAM! Press Access and from "Select a function" menu choose withrawToken.
Both values needed you already have. First one is PPT address: 0xd4fa1460f537bb9085d22c7bccb5dd450ef28e3a. Second is amount returned from balanceOf method.
Also type again your private key.
Then press Unlock wallet and then Write button.

In the popup fill amount with 0 (we are not sending any Eth), leave gas like it is and press Generate Transaction button.

And then the Yes... button.

If everything is fine then you'll get your Tx to verify if the token were send successfully.

Sort:  

Quite usefull, if you don't have your ED private key which is necessary here you can check how to restore them:
https://steemit.com/cryptocurrency/@ktoosiu/how-to-restore-your-etherdelta-private-keys#

Thanks for the link. It would be nice to gather all needed EtherDelta in one place or at least link between the articles like you did.

Thanks for sharing... Love it.

Thanks for sharing... Love it.

Great post with visualisation. Also look at what @ktoosiu posted in a comment.

Great works, I wish you success
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Good post I would be very thankful if you please follow and upvote me thanks.This post recieved an upvote from sanjeev.kapoor . If you would like to recieve upvotes from sanjeev.kapoor on all your posts, simply FOLLOW @sanjeev.kapoor

Cool! I follow you. +vote

Congratulations @wesolykapselek! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.22
TRX 0.24
JST 0.038
BTC 95076.63
ETH 3277.51
USDT 1.00
SBD 3.26