Can undelegate coins from allnodes

Started by alexandreesl 4 years ago · 14 replies · 9356 views
4 years ago

Hi, everything ok with you guys? I have a similar problem than in this thread:
/general-support-and-questions/i-think-i-accidently-transfered-coins-to-cold-staking-address-how-to-get-them-back-t625

I have 779 Piv delegated on AllNodes, I want to undelegate and send to another address of mine, but everytime I unlock my wallet and try to send to another address, I got a -4 error of insufficient funds. How do I correct this? If you could please explain to me using command-line commands, I can't use the GUI version of the Pivx wallet.

Thank you

4 years ago

@alexandreesl:
Hi, everything ok with you guys? I have a similar problem than in this thread:
/general-support-and-questions/i-think-i-accidently-transfered-coins-to-cold-staking-address-how-to-get-them-back-t625

I have 779 Piv delegated on AllNodes, I want to undelegate and send to another address of mine, but everytime I unlock my wallet and try to send to another address, I got a -4 error of insufficient funds. How do I correct this? If you could please explain to me using command-line commands, I can't use the GUI version of the Pivx wallet.

Thank you

Friend, Make sure wallet version is up to date. Then go to 'Send' -> 'Coin Control' - > Select the address with the cold staked coins then Copy the 'After Fee' amount (bottom right of wallet screen). Click 'OK', then on the send page, paste the amount copied in the earlier step.

4 years ago

Hi, palmtree, thanks for the help! But as I said, I can't use the GUI version right now, could please help guide me using the command line version? I tried to send using the sendmany command, that have a include_delegated arg, but everytime I try to include the flag I got a "JSON value is not a boolean ..." error

@palmtree:
Friend, Make sure wallet version is up to date. Then go to 'Send' -> 'Coin Control' - > Select the address with the cold staked coins then Copy the 'After Fee' amount (bottom right of wallet screen). Click 'OK', then on the send page, paste the amount copied in the earlier step.

4 years ago

Sorry, I missed the command line request. You can try this command:
sendtoaddress "address" full-amount subtract_fee
Example: sendtoaddress DLabsktzGMnsK5K9uRTMCF6NoYNY6ET4Bb 2000 subtract_fee

Hope that helps.

4 years ago

tried, still the same :-(
sendtoaddress DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V 779 subtract_fee

in the wallet, when I do a getbalance:
779.46255980

It seems to me that maybe sendmany would work, due to the include_delegated flag:

sendmany "" {"address":amount,...} ( minconf "comment" include_delegated )

Send to multiple destinations. Recipients are transparent or shield PIVX addresses.
....

  1. include_delegated (bool, optional, default=false) Also include balance delegated to cold stakers
    ....

but when I try:
sendmany "" "{\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\":779}" 6 "sending" true
this throws:
JSON value is not a boolean as expected

have tried everything, true, True, TRUE, nothing works :-(

4 years ago

Oh and the error with sendtoaddress that I get is:
error code: -4
error message:
Insufficient funds.

4 years ago

After many, many attempts, I think I found the solution. Using your address and amount from above, please try the following:

TXT
sendmany "" "{\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\":779}" [\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\"] include_delegated=true
4 years ago

Unfortunately, I received another error :-( , JSON value is not an integer as expected. I am using the PIVX Core RPC client version v5.4.0, don't know if this have any influence.

4 years ago

Oh, and thank you so much for your help! Beginning to think if maybe wouldn't this be a bug and needs to fill a issue

4 years ago

OK, 2 last tries, first try:

TXT
sendmany "" "{\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\":779}" [\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\"] include_delegated=1

If that doesn't work, try the following:

TXT
sendmany "" "{\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\":779}" [\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\"] include_delegated

If none of the above works, I'll try to reach out to a developer.

4 years ago

Hi, palmtree! Sorry for the delay. Unfortunately, both ended up with the same error:
Screen Shot 2022-07-27 at 22.51.37.png
I think we need a developer, indeed :-(

Oh, another note, I am running this on a Raspberry Pi, shouldn't make a difference anyway, but just to add more information to it. Thanks!

4 years ago

Sorry for delay, try this out:

TXT
sendmany "" "{\"DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V\":779}" 1 '["DBe3tFbY2xBJDVTE2zwPp8xgHzAB67sm2V"]'
4 years ago

Hi! Sorry for the delay, man. Now I got a insufficient funds error, I believe it is because is getting the default value for the delegated includedScreen Shot 2022-07-31 at 20.46.49.png

4 years ago

Sorry I'm not able to help any further, I awaiting a reply from other tech savy users. In the meantime, here are a few options:

  • Join Discord https://discord.pivx.org and post in the #support channel
  • Copy wallet.dat file to desktop and use GUI wallet
4 years ago

If you know the priv key of the address that holds the PIVs on allnodes, you can also use that priv key in https://mypivxwallet.org and use that to send out to yourself.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General Support and Questions · by mishav, 2 years ago
11 7765 2 years ago
General Support and Questions · by omega-mariner, 2 years ago
1 134877 2 years ago
General Support and Questions · by Nico-R, 2 years ago
3 3393 2 years ago
General Support and Questions · by m_omega79, 2 years ago
1 2969 2 years ago
General Support and Questions · by kasrakord, 2 years ago
1 2529 2 years ago