Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: how to withdraw delegate pay when amount is unknown? [RESOLVED]  (Read 380 times)

Offline monsterer

how to withdraw delegate pay when amount is unknown? [RESOLVED]
« on: December 04, 2014, 06:56:09 PM »

I'm trying to write a script to regularly withdraw pay from my delegate into an account not hosted on my server, for security reasons.

When I do wallet_account_balance I get 0.01 BTS, so I presume the delegate pay isn't listed this way?

wallet_delegate_withdraw_pay requires an amount, but there doesn't appear to be any way to know what the total is. What am I missing?
« Last Edit: December 04, 2014, 10:35:36 PM by bytemaster »
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline vikram

Re: how to withdraw delegate pay when amount is unknown?
« Reply #1 on: December 04, 2014, 07:15:33 PM »
I'm trying to write a script to regularly withdraw pay from my delegate into an account not hosted on my server, for security reasons.

When I do wallet_account_balance I get 0.01 BTS, so I presume the delegate pay isn't listed this way?

wallet_delegate_withdraw_pay requires an amount, but there doesn't appear to be any way to know what the total is. What am I missing?

Use "wallet_get_account <your_delegate_name>" and you will see the available pay that can be withdrawn.

This should not be a problem after the next hardforking release, which will allow you specify a different key that can produce blocks (and publish feeds) but not withdraw your pay.
« Last Edit: December 04, 2014, 07:24:08 PM by vikram »

Offline monsterer

Re: how to withdraw delegate pay when amount is unknown?
« Reply #2 on: December 04, 2014, 08:23:11 PM »
Ok, I've done a wallet_delegate_withdraw_pay to my delegate account, but the balance is still showing 0?
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline toast

Re: how to withdraw delegate pay when amount is unknown?
« Reply #3 on: December 04, 2014, 08:25:29 PM »
Ok, I've done a wallet_delegate_withdraw_pay to my delegate account, but the balance is still showing 0?

Make sure scanning is on:

wallet_set_transaction_scanning true
rescan
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline monsterer

Re: how to withdraw delegate pay when amount is unknown?
« Reply #4 on: December 04, 2014, 08:38:56 PM »
Make sure scanning is on:

wallet_set_transaction_scanning true
rescan

Thanks, that worked.

Any idea how I can send to a public key? Seems wallet_transfer_asset_to_address needs an actual address.
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1337
    • View Profile
Re: how to withdraw delegate pay when amount is unknown?
« Reply #5 on: December 04, 2014, 08:50:11 PM »
Ok, I've done a wallet_delegate_withdraw_pay to my delegate account, but the balance is still showing 0?

Make sure scanning is on:

wallet_set_transaction_scanning true
rescan

Will this keep the wallet up to date as future transactions happen? Is this equivalent to keeping wallet unlocked in this way?
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline Riverhead

Re: how to withdraw delegate pay when amount is unknown?
« Reply #6 on: December 04, 2014, 09:00:38 PM »
Transaction scanning isn't needed for delegate pay since it's public on the blockchain.

This is my solution to the problem: https://github.com/Riverhead/balance_keeper

Offline monsterer

Re: how to withdraw delegate pay when amount is unknown?
« Reply #7 on: December 04, 2014, 09:02:15 PM »
Transaction scanning isn't needed for delegate pay since it's public on the blockchain.

This is my solution to the problem: https://github.com/Riverhead/balance_keeper

Oh wow, you are a lifesaver! Many thanks +5% +5%

edit: can this withdraw to an account not in the wallet?
« Last Edit: December 04, 2014, 09:05:04 PM by monsterer »
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Riverhead

Re: how to withdraw delegate pay when amount is unknown?
« Reply #8 on: December 04, 2014, 09:17:49 PM »
Transaction scanning isn't needed for delegate pay since it's public on the blockchain.

This is my solution to the problem: https://github.com/Riverhead/balance_keeper

Oh wow, you are a lifesaver! Many thanks +5% +5%

edit: can this withdraw to an account not in the wallet?
You're welcome :).

Yes it will send to any registered account.

Sent from my Timex Sinclair.


 

Google+