almindor / etherwall

Ethereum QT5 Wallet
GNU General Public License v3.0
142 stars 59 forks source link

Sending ERC20 Tokens from etherwall thin client Problems.... Help Please ! #83

Closed Gden50 closed 6 years ago

Gden50 commented 6 years ago

Hello, I have a number of ERC20 Tokens in my Etherwall Thin client V 2.2.0 account but want to transfer them to my Trezor MyEther Wallet hard wallet account ... how do I do this please ? I have looked at this process and do not understand it fully, I did try to send 10 Tokens but only a very small value was sent out and on top of that I only received like 0.00001 in the Trezor wallet ... My main balance in my Etherwall wallet went from .000000 to .999990 ... looks like the decimal point got moved in the transaction ??? all very confusing so I think I need a step by step guide on how to transfer and send Tokens out of Etherwall please. Normally I can teach myself on how to overcome problems within computer systems and stuff as I am an systems automation industrial electrical engineer, but trial and error on this occasion is costing Tokens and high Ethereum gas costs and I will have lost Tokens and all my Ethereum in gas working the problems out so help is needed please.... I have SingularityNET (AGI) Tokens and TRON (TRX) Tokens, the Tron token is what I did the transfer with that went wrong.

Thanks, Gary ....

Gden50 commented 6 years ago

Update, I have worked it out ! ..... https://etherscan.io/token/Tronix

Contract Address: | 0xf230b790e05390fc8295f4d3f60332c93bed42e2 Token Decimals: | 6

Just add 6 x 0 after the amount you need to send ... So to send 10 tokens from Tron ( TRX ) for example it would be 10000000 as the six 0 after the 10 is the amount of ( Token Decimals: | 6 ) in this contract, other tokens may have more Token Decimals or less ....just adjust the transfer settings to you're tokens contract Token Decimals.

Hope this helps.

almindor commented 6 years ago

Hmm odd, the decimals value should be detected properly via the contract and handled by EW.

I'll try and test this out by cloning the contract on testnet.

Also as a note you don't need to send out of EW if you use Trezor. Trezor is fully supported with Etherwall.

almindor commented 6 years ago

The decimals handling seems ok on local, but I did notice I got the "always failing transaction" error on estimateGas from Geth on some calls which should never fail.

Will try to investigate further. I suspect what happened in your case is that when you added the TRX contract the call to get the decimals value somehow failed (possibly due to an issue with gasEstimation call) and defaulted to 18.

almindor commented 6 years ago

I can't seem to reproduce this using the contract on testnet.

I can send any denomination as expected (with "1" being an actual "1000000" of base units).

The only way I can think of for your EW to send this wrong is if the decimals value is considered wrong.

What platform are you running etherwall on? Would you be willing to run a debug version to help me find the issue out? I need to find out what the decimals on your stored contract info looks like and if that is correct then do an attempted send (not needed to be actually done) where we'd log the raw text value vs the "base units" value.

almindor commented 6 years ago

Closing for inactivity, can't replicate on my end. Please re-open if still an issue.