Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: gondel on May 08, 2019, 03:28:18 PM



Title: Can you shcedule payments with a wallet?
Post by: gondel on May 08, 2019, 03:28:18 PM
Hi all,
Anyone know a wallet which can schedule payments to specific addresses?
If not, can someone help me implement a future on a bitcoin wallet where scheduled payments can be setup?
I would like to discuss more about it if interested.
Thanks


Title: Re: Can you shcedule payments with a wallet?
Post by: DaveF on May 08, 2019, 03:53:58 PM
You can use nlock to kind of do it.

https://en.bitcoin.it/wiki/Protocol_documentation#tx (https://en.bitcoin.it/wiki/Protocol_documentation#tx)

Also, you can use sendtoaddress at the command line and just set up the command to run at a specific time & date using the OS (Win / Mac /*nix) all have a way of scheduling things.

No wallet has it as far as I know.

Might not be the best idea. If someone gets access to your PC they can schedule sends for later, makes the who-done-it more difficult to track. But you are correct, it's probably worth discussing.

-Dave


Title: Re: Can you shcedule payments with a wallet?
Post by: bitmover on May 08, 2019, 03:57:49 PM
Yes it is possible. Blockchain allows that

https://bitcoin.stackexchange.com/questions/29574/how-to-schedule-a-bitcoin-transaction

However I don't know which wallet allows you to do it easily for a newbie


Title: Re: Can you shcedule payments with a wallet?
Post by: khaled0111 on May 08, 2019, 11:25:01 PM
Also, you can use sendtoaddress at the command line and just set up the command to run at a specific time & date using the OS (Win / Mac /*nix) all have a way of scheduling things.
You can combine the sendtoaddress command with sleep command under Linux/Unix where you set the time to execute both commands. You can do the same under DOS using the timeout  or at commands or the GUI task scheduler.

Relying on the OS to execute a scheduled task requires the OS to be running at that specific time though.
So, better use the nLockTime parameter especially if you want to lock the transaction for long time.


Title: Re: Can you shcedule payments with a wallet?
Post by: Heisenberg_Hunter on May 09, 2019, 05:49:41 AM
Scheduling of payments doesn't happen through time in blockchain. When you specify the nLocktime it is about when your transaction gets included in a block which has a height higher than the one you have specified in the nlocktime as far as GreenAddress is considered. You can create a transaction, sign them using your private key and specify the nLockTime to a future block. Till that time (i.e till the mentioned block is mined) the node considers your transaction as invalid if you try to broadcast them and none of the miners will include your locked transaction in a block. All you can do, is sign the tx and store them and the wallet broadcast it at the right time once the certain block has reached. Time Locking is done for locking our funds for children/heirs or similar, but it isn't really advisable to do so.

For instance if you create a transaction and enter nlocktime as 600,000 which will be mined sometime in the future, your transaction will be considered invalid till the network reaches the 600,000 block and later then they would be included in a future block based on the priority of the fee you have specified. But nlock transactions have an added advantage, where you can cancel the transaction before they are included in a future block by spending the same input with another transaction.

No wallet has it as far as I know.

Not true. Green Address wallet uses the nLockTime feature to schedule the transactions for a future block. Here, the Greenaddress wallet stores your fund in a 2of2 multi-sig wallet so that both you and greenaddress require to sign the transaction if they want to be broadcasted to the network before the lock time ends. You could even try Coinb.in for creating and spending a time locked transaction. Check TryNinja post (https://bitcointalk.org/index.php?topic=2415595.msg24710770#msg24710770) on how to carry out one.

What if you specify the transaction to a far future block?

This is not really advisable to do so. Btc is receiving updates and code changes quite very often, so if you lock your coins for a longer period and a soft fork or similar occurs it might be difficult for you to spend your old coins. Not really sure about this, but this might happen.

If you are willing to create a locked transaction, try reading this : https://steemit.com/bitcoin/@daan/how-to-create-time-locked-transactions-with-bitcoin-free-bitcoins-inside


Title: Re: Can you shcedule payments with a wallet?
Post by: cipherhut on May 09, 2019, 06:16:02 AM
Scheduling payment is possible but it will increase the theft probability as if someone schedules payment from your Id in your absence then it will be difficult to find that "X" person or else we need to increase the scheduling authenticity practice.


Title: Re: Can you shcedule payments with a wallet?
Post by: bitmover on May 09, 2019, 09:41:54 AM
Scheduling payment is possible but it will increase the theft probability as if someone schedules payment from your Id in your absence then it will be difficult to find that "X" person or else we need to increase the scheduling authenticity practice.

There is no ID in the blockchain, just private and public keys.
You are too used to banks :)


Title: Re: Can you shcedule payments with a wallet?
Post by: Pop2019 on May 09, 2019, 10:19:30 AM
I'm doing a reseach about preset presign transfer script.
I think it is not difficult to make it safe.

You have to fix which UTXO to be used, fix receiving address, and sign it with your private key (both scriptPubKey & scriptSig)
Make it like ready to broadcast TX. (that safety enough. It can not be changed if only you know the private key)

And then for easy, you can use linux script to handle scheduling broadcast.
But if any went wrong. Your preset TX will be rejected by network. And no tranfers is made.


Title: Re: Can you shcedule payments with a wallet?
Post by: keychainX on May 13, 2019, 11:47:13 AM
Hi all,
Anyone know a wallet which can schedule payments to specific addresses?
If not, can someone help me implement a future on a bitcoin wallet where scheduled payments can be setup?
I would like to discuss more about it if interested.
Thanks


Yes, you can do this with mycrypto.com

Link to the medium blog

https://medium.com/@MyCrypto/schedule-your-ethereum-transactions-now-on-mycrypto-92a6305f7dcc

/KX



Title: Re: Can you shcedule payments with a wallet?
Post by: Pmalek on May 14, 2019, 08:22:21 AM

Yes, you can do this with mycrypto.com
True but that is for Ethereum payments.
The OP is looking for a wallet where that works for bitcoin payments or someone who can help him to find a way to make it work.


Title: Re: Can you shcedule payments with a wallet?
Post by: danda on May 15, 2019, 07:01:22 PM
If I wanted to do it, I would use bitcoin-core with a script that calls sendtoaddress from cron. 

There may be other ways, but I think that is the most straightforward and trustless.