Author

Topic: Best way to schedule BTC payments? (Read 81 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
June 22, 2021, 04:28:33 AM
#6
Aside from what @NotATether said, you also need to find API which give current Bitcoin price. Blockchain API (https://www.blockchain.com/api/exchange_rates_api) should do the job because it's less likely to block the request if you use VPN/Tor and has been available for long time.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
June 22, 2021, 03:46:17 AM
#5
As far as I know, there's no such wallet which can do that. You have two options to hack up a solution though. The first is to run Bitcoind on Linux and to set up a cron job at a specific day of the week to invoke a script that contains calls to bitcoin-cli walletpassphrase, createrawtransaction to construct the raw transaction, fundrawtransaction to specify a change address, signrawtransactionwithwallet to sign it and finally call sendrawtransaction to send the signed raw transaction.

I recommend using a programming language such as PHP or Python for this, and not bash or shell scripts because they cannot parse JSON output well, and choke on single and double quoted strings.

The other option is to set up the same configuration except on Windows and task scheduler instead of Linux and Cron. Task Scheduler does have the advantage of being easier to set up than cron job schedulers, but this tool is a user-friendly way to make a ready-to-use cron scheduler: https://crontab.guru/
legendary
Activity: 3612
Merit: 5297
https://merel.mobi => buy facemasks with BTC/LTC
June 22, 2021, 02:38:54 AM
#4
--snip--
Which means normally, no reputed wallet known can do that without setting up a script.

Well, i don't know any decent, semi-trusted, wallet that does this. Maybe you'll find some online non-custodial wallet that does this, but i wouldn't recommend using a non-trusted wallet just for this feature.

But yeah, the sollution i offered is not a one-buttom sollution... OP will need to do some scripting (or ask somebody to write him a script).
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 22, 2021, 02:35:56 AM
#3
bitcoin core or electrum can be run as a daemon... Then you can use the json-rpc interface to create, sign and broadcast transactions.

I'm not saying this is an easy procedure, you'll need to run a daemon, write a payment script and schedule it to run daily... And i'd defenately urge you to test on the testnet first
Which means normally, no reputed wallet known can do that without setting up a script.
legendary
Activity: 3612
Merit: 5297
https://merel.mobi => buy facemasks with BTC/LTC
June 22, 2021, 02:30:09 AM
#2
bitcoin core or electrum can be run as a daemon... Then you can use the json-rpc interface to create, sign and broadcast transactions.

I'm not saying this is an easy procedure, you'll need to run a daemon, write a payment script and schedule it to run daily... And i'd defenately urge you to test on the testnet first
newbie
Activity: 1
Merit: 3
June 22, 2021, 02:28:57 AM
#1
Let's say I need to send the same dollar amount, in BTC, to the same address once a week.

Is there any wallet that can do this automatically for me?
Jump to: