Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I transfer all the DOT to my another account #142

Closed
ghost opened this issue Apr 4, 2021 · 23 comments
Closed

How can I transfer all the DOT to my another account #142

ghost opened this issue Apr 4, 2021 · 23 comments

Comments

@ghost
Copy link

ghost commented Apr 4, 2021

I have five account on polkadot, and they all have a little bit DOT,but when I transfer(close keep alive switch) the DOT, it alway tell me that Exception balances.keepalive, what should I do? If I leave 1 DOT on account, I lost 4 DOT?

@ghost ghost closed this as completed Apr 4, 2021
@ghost ghost reopened this Apr 4, 2021
@ghost
Copy link
Author

ghost commented Apr 4, 2021

balances.KeepAlive Exception when I want transfer, how can I do if I want to transfer all DOT to another account

@bkchr bkchr transferred this issue from paritytech/polkadot Apr 4, 2021
@shawntabrizi
Copy link
Member

shawntabrizi commented Apr 4, 2021

To transfer the full balance using Polkadot JS Apps, you simply need to adjust the toggles like in this image:

image

@ghost
Copy link
Author

ghost commented Apr 4, 2021

To transfer the full balance using Polkadot JS Apps, you simply need to adjust the toggles like in this image:

image

I dont't find toggles like you, and it has something different

image

@ghost
Copy link
Author

ghost commented Apr 4, 2021

image

English Version

@shawntabrizi
Copy link
Member

@Zeusxs it means that you are using your account in some way where you cannot transfer the full balance. For example if you have some lock on your account or some reserved balance.

Maybe you have a identity registered, you are staking, you are voting, etc... Whatever it is, you need to undo those things.

@ghost
Copy link
Author

ghost commented Apr 5, 2021

@Zeusxs it means that you are using your account in some way where you cannot transfer the full balance. For example if you have some lock on your account or some reserved balance.

Thanks a lot, I check my account , and three of them transfer successfully. only one accound(I check no identity registered, no staking, no voting) still have this problem. Is there any RPC method that I can query my account state

@ghost
Copy link
Author

ghost commented Apr 5, 2021

image

image

@shawntabrizi
Copy link
Member

@Zeusxs please dont open another issue. Just post your address and we can look to see what the issue might be.

@ghost
Copy link
Author

ghost commented Apr 5, 2021

@Zeusxs please dont open another issue. Just post your address and we can look to see what the issue might be.

This is my address: 123dYiYNBwu4Wy8FjPuz259e5zhfiFWxdFcPqEm1e8YsAMs8
Thank you very much~

@shawntabrizi
Copy link
Member

shawntabrizi commented Apr 5, 2021

The problem here is likely because of the session > set_keys call you made, but its not exactly clear to me how to fix it.

Will need more time to investigate

@ghost
Copy link
Author

ghost commented Apr 5, 2021

The problem here is likely because of the session > set_keys call you made, but its not exactly clear to me how to fix it.

Will need more time to investigate

Yeah, I used session->set_keys to set session key, but the server which run polkadot binary program is stop now, maybe I should set a new session key, and use session->purge_key

@shawntabrizi
Copy link
Member

@Zeusxs i think that is reasonable. Also remember things in the session pallet take a full session to take effect.

@ghost
Copy link
Author

ghost commented Apr 6, 2021

I try to made RPC method(session->purge_key). The exception(noAssociatedValidatorId) happened. does it means that My account is clear session successfully? But I still can't transfer all DOT. I think maybe I meet a bug .

@shawntabrizi
Copy link
Member

@Zeusxs I have opened an issue ^

We will continue to investigate. There is not much that can be done for the moment. Sorry about that.

@ghost
Copy link
Author

ghost commented Apr 6, 2021

nice for you!, I just feel sad about my 1 DOT~, Ha Ha Ha

@shawntabrizi
Copy link
Member

If we can find a bug, I will make sure to open a tip for you for more than 1 DOT for reporting this bug to us :)

@shawntabrizi
Copy link
Member

@Zeusxs We saw that the first thing you tried to do was become a validator. To your knowledge, did that work?

@shawntabrizi
Copy link
Member

shawntabrizi commented Apr 6, 2021

@Zeusxs We found the issue. Basically the purge_keys command was checking to see if you were a validator, and only allowing you to clean up your keys if that is the case.

Before you cleaned up your keys, you stopped becoming a validator, so you were not able to call purge_keys successfully.

You will need to set your account to become a a validator again, remove the keys from your account, then stop being a validator. There may be another improvement we can make to the story here to make it so that you dont need to become a validator again, but this is something for the future.

What is the current Polkadot Address we can use for a small bug reporting tip?

@ghost
Copy link
Author

ghost commented Apr 6, 2021

Here is my address, 123dYiYNBwu4Wy8FjPuz259e5zhfiFWxdFcPqEm1e8YsAMs8

@shawntabrizi
Copy link
Member

Are you a programmer? you might be interested to make a PR to solve the issue I opened here ^^

And it would solve your issue too :)

@ghost
Copy link
Author

ghost commented Apr 6, 2021

Are you a programmer? you might be interested to make a PR to solve the issue I opened here ^^

And it would solve your issue too :)

actually I'm a programer, but I'm not familiar with Rust language. So it maybe diffcult for me to solve this issue

@kianenigma
Copy link

kianenigma commented Apr 6, 2021

For further investigation, the track of changes of the account of subject is:

Ref count changed at 4481265 from 1,3 to 1,1: https://polkascan.io/polkadot/transaction/0x7047b0f320df7146a47ec38c096d336d7faddd085b7e569ab7ab832098cb8954
Ref count changed at 4064067 from 1,0 to 1,3: https://polkascan.io/polkadot/transaction/0x95f087f3ab7c2d6c04855e2191c44879d989f7aeb670b9dfa8d044d9e8a95c30
Ref count changed at 4064046 from 0,0 to 1,0: https://polkascan.io/polkadot/transaction/0xbff2d68117582173ab572c4dea2ab946836357fa25a01935f901f60c4c430b8f

Seems like paritytech/substrate#8543 will solve it, but haven't looked further yet.

@ghost
Copy link
Author

ghost commented Jun 15, 2021

Have this bug been solved? I still can't transfer my DOT and calling purgeKey remain fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants