how to withdraw delegate pay when amount is unknown? [RESOLVED]

Started by monsterer, December 04, 2014, 06:56:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Riverhead

Quote from: monsterer on December 04, 2014, 09:02:15 PM
Quote from: Riverhead 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

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.


monsterer

#8
Quote from: Riverhead 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

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

edit: can this withdraw to an account not in the wallet?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Riverhead

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

jsidhu

Quote from: toast on December 04, 2014, 08:25:29 PM
Quote from: monsterer 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?

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

monsterer

Quote from: toast on December 04, 2014, 08:25:29 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.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

toast

Quote from: monsterer 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?

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.

monsterer

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.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

vikram

#2
Quote from: monsterer 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?

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.

monsterer

#1
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?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads