I just wanted to know if you could schedule a bitcoin transaction. For example I want to send some BTC to someone exactly at 4:00 pm but it is 1:00 pm at my current place. Is that possible so that my wallet somehow automatically sends the BTC after a certain time?

  • This can actually be done on the blockchain itself, if you set the nLockTime value. But this would probably mean making a raw transaction.
    – Tim S.
    Jul 18 '14 at 20:47

Option 1

I'm not sure on which platform you are, but if you use a Linux or Mac, you can combine the following two commands (sources here and here. Check also the at manual):

echo "ls -l" | at 07:00 


 bitcoind sendtoaddress <bitcoinaddress> <amount>

to make something like:

echo "bitcoind sendtoaddress    1MAtHias8yvaLcDgckkG5QnVLY7ucBZrGv 0.01" | at 07:00 

to send me 0.01 BTC at 07:00 o'clock in the morning. I think you're computer should stay on for this, as it cannot send a transaction with it turned off.

Option 2

You can also work with sleep (Mac and Linux only):

sleep 120 && bitcoind sendtoaddress 1MAtHias8yvaLcDgckkG5QnVLY7ucBZrGv 0.01

The number behind sleep is the amount of seconds that there is nothing executed. So now it will send 0.01 BTC to me, after 2 (=120/60) minutes. The && will first execute the left side. If that executed succesful, the right side is executed. It is more insightful, but you'll have to calculate the amount of seconds and is as precise as your calculations.

Option 3

For windows:

timeout 120 && bitcoind sendtoaddress   1MAtHias8yvaLcDgckkG5QnVLY7ucBZrGv 0.01

timeout is the sleep variant of windows. Probably doesn't work on Windows XP, but works here on W8 and should work on W7. The && does the same as in Option 2.

  • I use windows and use blockchain. Is there any other option? Jul 18 '14 at 18:08
  • I don't have a answer in that case. I will leave my answer however, as it can be a solution to someone else who visits this page later on.
    – Mathias711
    Jul 18 '14 at 18:16
  • Even if I download the client, do you know the command for windows? Jul 18 '14 at 18:16
  • There are the same commands as the other clients. See the second link from my answer for the commands. A screenshot shows how you can use it, I suppose
    – Mathias711
    Jul 18 '14 at 18:19
  • 1
    To follow up on Mathias's answer/comments. For accessing the PHP API he linked, you can use wget (gnuwin32.sourceforge.net/packages/wget.htm). And to have it run once (or repeatedly) at a certain time, you can use the Task Scheduler built in to Windows, which you can find if you open Computer Management->System Tools->Task Scheduler->Task Scheduler Library
    – Matt
    Jul 18 '14 at 20:56

you can have a php or python script and keep it running till the time comes, something like:

$hour = date('G'); // 0 .. 23
//if time = 16 
if ($hour == 16) { 
    $json_url = "https://blockchain.info/merchant/$guid/payment?password=$firstpassword&to=$addressa&amount=$amounta";  
$json_data = file_get_contents($json_url);

 } ?>

this is more of a pseudo-code for what I meant and might not work without modification.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.