Bitcoin Forum
May 13, 2024, 01:09:21 AM
Welcome,
Guest
. Please
login
or
register
.
News
: Latest Bitcoin Core release:
27.0
[
Torrent
]
Home
Help
Search
Login
Register
More
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
How to send bitcoin automatically?
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: How to send bitcoin automatically? (Read 459 times)
wsxdrfv
(OP)
Jr. Member
Offline
Activity: 405
Merit: 5
How to send bitcoin automatically?
June 04, 2018, 06:48:03 AM
#1
If bitcoin's balance is higher than some standard (like 0.2 BTC), how to send another address automatically?
I want to make this process automatic.
I am using ubuntu and at there bitcoin daemon is running.
1715562561
Hero Member
Offline
Posts: 1715562561
Ignore
1715562561
1715562561
#2
1715562561
Report to moderator
1715562561
Hero Member
Offline
Posts: 1715562561
Ignore
1715562561
1715562561
#2
1715562561
Report to moderator
1715562561
Hero Member
Offline
Posts: 1715562561
Ignore
1715562561
1715562561
#2
1715562561
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715562561
Hero Member
Offline
Posts: 1715562561
Ignore
1715562561
1715562561
#2
1715562561
Report to moderator
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
Re: How to send bitcoin automatically?
June 04, 2018, 07:18:53 AM
Merited
by
mdayonliner
(1)
#2
A simple script and "cron" should be able to do this... The script can simply use bitcoin-cli and RPC calls to check the balance of the address... then, if addressBalance > $target, create a transaction that sends BTC to the address you want to send to.
Once you have the script working OK, you can use Cron to schedule the task to run every 5-10 minutes (or hourly or daily or whatever you like).
█████████████████████████
████
▐██▄
█████████████████
████
▐████
██
▄▄▄
███████████
████
▐████▄█████▄▄
████████
████
▐█████▀▀▀▀▀███▄
██████
████
▐███▀
███████
████
█████
████
▐███
██
██
██
▄█████▌
████
████
▐██▌
█████
▀██████▌
████
████
▐███
███████
▀████▌
████
█████
▀███▄
█████
▄███▀
█████
███████
▀█████████▀
███████
██████████
▀███▀
██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄
████████
▄▄▄
▀
██████████████
█████░░▄▄▄▄
████████
▄▄▄▄▄▄▄▄▄
██
▄█
█
█
█████
▄▄▄▄
████
▄██
█
█
█▄█▄▄████████
██
▄█
█
███▄
████
██
███████████████████████
██▀
███
▀████▄██▄██▄░░░░▄
██████
███
███
▀▀▀█████▄▄▄████
█████
██▀
██
███
██
███████
████
███▀
██
██
███
██████████
████▄
██
▄██
████
███████
█
████
██▄
██
███
██
██
████████
█
█████
█▀
██
██████████████████████▄
.
..
CASINO
.
.
..
SPORTS
..
.
.
RACING
..
█░
░░░░
░█░
░░░░
░█
▀███▀░░▀███▀░░▀███▀
▀░▀
░░░░
▀░▀
░░░░
▀░▀
▄
░░░░░░░░░░░░
▀██████████
░░░░░
███
░░░░
▀
░░█
░░░
███▄█
░░░
█
░░██▌
░░
███░▀
░░
██▌
░█░██
░░
███
░░░
█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄
░░░
██▄███▄█▄
░░
▄██▄
▄███▄
░░░░
▀██▄▀
▄▄████▄▄
▄███▀▀███▄
███
████
███
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███
████
▄▄▀▀████▄▄▀▀
████
███
▀███▄▄███▀
░░░
▀▀████▄▄▄███▀
▀▀████▀▀
████████
▀▀████▀▀
WELCOME BONUS
UP TO
5 BTC
reflector
Sr. Member
Offline
Activity: 826
Merit: 263
Re: How to send bitcoin automatically?
June 04, 2018, 01:58:59 PM
#3
Quote from: wsxdrfv on June 04, 2018, 06:48:03 AM
If bitcoin's balance is higher than some standard (like 0.2 BTC), how to send another address automatically?
I want to make this process automatic.
I am using ubuntu and at there bitcoin daemon is running.
As HCP said you could use the script to push the transaction on the concern wallet you want bro. You could find some exchanges and mining pool wallet do this work. You could take that as a example for it mate.
If you do not want to do work on script side. You will be able to use the exchange the wallet and add the limited fund push after the it reaches the withdrawal limit mate.
wsxdrfv
(OP)
Jr. Member
Offline
Activity: 405
Merit: 5
Re: How to send bitcoin automatically?
June 04, 2018, 11:59:22 PM
#4
Quote from: HCP on June 04, 2018, 07:18:53 AM
A simple script and "cron" should be able to do this... The script can simply use bitcoin-cli and RPC calls to check the balance of the address... then, if addressBalance > $target, create a transaction that sends BTC to the address you want to send to.
Once you have the script working OK, you can use Cron to schedule the task to run every 5-10 minutes (or hourly or daily or whatever you like).
Thanks. So how can I make that script? Is it shell programming? If then, what is the code that run command line execution inside shell script?
I want to see exact code example.
mr-anonymous
Jr. Member
Offline
Activity: 30
Merit: 4
Re: How to send bitcoin automatically?
June 05, 2018, 01:28:07 AM
Merited
by
btj
(2)
#5
If you are coder, make it from JSON RPC.
wsxdrfv
(OP)
Jr. Member
Offline
Activity: 405
Merit: 5
Re: How to send bitcoin automatically?
June 05, 2018, 05:35:04 AM
#6
Quote from: mr-anonymous on June 05, 2018, 01:28:07 AM
If you are coder, make it from JSON RPC.
Yes I am coder, but familiar with C#.
Anyway, how to make from JSON RPC. How? exact process workflow?
bob123
Legendary
Offline
Activity: 1624
Merit: 2481
Re: How to send bitcoin automatically?
June 05, 2018, 08:19:22 AM
#7
Quote from: wsxdrfv on June 04, 2018, 11:59:22 PM
Thanks. So how can I make that script? Is it shell programming? If then, what is the code that run command line execution inside shell script?
I want to see exact code example.
You seem to ask
a lot
of
basic
questions.
HCP already gave you pseudo code with your logic, you can work with.
If we would give you an further 'example', it already would be the whole code. Thats literally less than 10 lines of code..
Without offending you.. but if you can't create such a small script (and can't find anything on google), you probaly shouldn't work on a crypto project.
Please do yourself a favor and do NOT create/host a crypto site/project/exchange/.. Your application will
definitely
be vulnerable.
You are inviting black hats into stealing your funds..
░░░░░
▄▄██████▄▄
░░
▄████▀▀▀▀▀▀████▄
░
███▀
░░░░░░░░░░
▀█▀█
███
░░░
▄██████▄▄
░░░
██
░░░░░
█████████
░░░░
██▌
░░░░
█████████████████
░░░░
█████████████████
░░░░░
████████████████
███▄
░░
▀██████▀
░░░
███
█▀█▄▄
░░░░░░░░░░
▄███
░░
▀████▄▄▄▄▄▄████▀
░░░░░
▀▀██████▀▀
.
ChipMixer
.
{
MIXING
REINVENTED
FOR YOUR
PRIVACY
#
.
ChipMixer
.
░░░░░
▄▄██████▄▄
░░
▄████▀▀▀▀▀▀████▄
░
███▀
░░░░░░░░░░
▀█▀█
███
░░░
▄██████▄▄
░░░
██
░░░░░
█████████
░░░░
██▌
░░░░
█████████████████
░░░░
█████████████████
░░░░░
████████████████
███▄
░░
▀██████▀
░░░
███
█▀█▄▄
░░░░░░░░░░
▄███
░░
▀████▄▄▄▄▄▄████▀
░░░░░
▀▀██████▀▀
mr-anonymous
Jr. Member
Offline
Activity: 30
Merit: 4
Re: How to send bitcoin automatically?
June 05, 2018, 09:57:52 PM
Merited
by
btj
(2)
#8
Quote from: wsxdrfv on June 05, 2018, 05:35:04 AM
Quote from: mr-anonymous on June 05, 2018, 01:28:07 AM
If you are coder, make it from JSON RPC.
Yes I am coder, but familiar with C#.
Anyway, how to make from JSON RPC. How? exact process workflow?
There more informations from here:
https://bitcoin.stackexchange.com/questions/5810/how-do-i-call-json-rpc-api-using-c
You can use
Quote
getbalance
method to check if amount to send is available.
And then
Quote
sendfrom
to the amount to another address.
But i think sendfrom is disabled, you have to host a PHP script on your node server that serve as API for your own script.
DannyHamilton
Legendary
Offline
Activity: 3388
Merit: 4653
Re: How to send bitcoin automatically?
June 08, 2018, 04:16:53 PM
#9
Quote from: wsxdrfv on June 04, 2018, 06:48:03 AM
If bitcoin's balance is higher than some standard (like 0.2 BTC), how to send another address automatically?
I want to make this process automatic.
This question sounds like it has significant potential to be an
XY problem
.
Why do you want "to send another address automatically?" I suspect that there might be a better way to accomplish what you want instead of doing that.
wsxdrfv
(OP)
Jr. Member
Offline
Activity: 405
Merit: 5
Re: How to send bitcoin automatically?
June 11, 2018, 03:31:40 AM
#10
Quote from: DannyHamilton on June 08, 2018, 04:16:53 PM
Quote from: wsxdrfv on June 04, 2018, 06:48:03 AM
If bitcoin's balance is higher than some standard (like 0.2 BTC), how to send another address automatically?
I want to make this process automatic.
This question sounds like it has significant potential to be an
XY problem
.
Why do you want "to send another address automatically?" I suspect that there might be a better way to accomplish what you want instead of doing that.
Because I want to automatically move coin to more safe place.
DannyHamilton
Legendary
Offline
Activity: 3388
Merit: 4653
Re: How to send bitcoin automatically?
June 11, 2018, 03:42:12 AM
#11
Quote from: wsxdrfv on June 11, 2018, 03:31:40 AM
I want to automatically move coin to more safe place.
Perhaps you should just receive it at the "more safe place" originally. Then you won't have to move it.
pebwindkraft
Sr. Member
Offline
Activity: 257
Merit: 343
Re: How to send bitcoin automatically?
June 12, 2018, 08:09:39 AM
#12
Quote from: DannyHamilton on June 11, 2018, 03:42:12 AM
Quote from: wsxdrfv on June 11, 2018, 03:31:40 AM
I want to automatically move coin to more safe place.
Perhaps you should just receive it at the "more safe place" originally. Then you won't have to move it.
In another thread OP is asking on cold storage. I think he wants to collect his coins on the live system, and when it goes over a certain threashold, move the funds to the cold storage. Similar as to what the exchanges would do with hot and cold wallets.
I had a similar setup with a mining provider. Every day or week I would receive funds from them. A part was used to buy beer
At a certain height, I pushed a part manually to my cold storage system.
bob123
Legendary
Offline
Activity: 1624
Merit: 2481
Re: How to send bitcoin automatically?
June 12, 2018, 10:33:59 AM
#13
Quote from: pebwindkraft on June 12, 2018, 08:09:39 AM
Quote from: DannyHamilton on June 11, 2018, 03:42:12 AM
Quote from: wsxdrfv on June 11, 2018, 03:31:40 AM
I want to automatically move coin to more safe place.
Perhaps you should just receive it at the "more safe place" originally. Then you won't have to move it.
I think he wants to collect his coins on the live system, and when it goes over a certain threashold, move the funds to the cold storage.
Thats self-explanatory.
DannyHamilton is still right. The 'better' way of doing it would be to receive the payments to the cold storage directly.
Thats way less prone to errors than receiving everything in a hot wallet to forward it afterwards. I don't see the actual benefit.
Quote from: pebwindkraft on June 12, 2018, 08:09:39 AM
Every day or week I would receive funds from them. A part was used to buy beer
At a certain height, I pushed a part manually to my cold storage system.
If you are using two wallets (hot-/cold-), it is recommended (security-wise) to receive them to your cold wallet, which you then use to fund your hot wallet. Not vice-versa.
░░░░░
▄▄██████▄▄
░░
▄████▀▀▀▀▀▀████▄
░
███▀
░░░░░░░░░░
▀█▀█
███
░░░
▄██████▄▄
░░░
██
░░░░░
█████████
░░░░
██▌
░░░░
█████████████████
░░░░
█████████████████
░░░░░
████████████████
███▄
░░
▀██████▀
░░░
███
█▀█▄▄
░░░░░░░░░░
▄███
░░
▀████▄▄▄▄▄▄████▀
░░░░░
▀▀██████▀▀
.
ChipMixer
.
{
MIXING
REINVENTED
FOR YOUR
PRIVACY
#
.
ChipMixer
.
░░░░░
▄▄██████▄▄
░░
▄████▀▀▀▀▀▀████▄
░
███▀
░░░░░░░░░░
▀█▀█
███
░░░
▄██████▄▄
░░░
██
░░░░░
█████████
░░░░
██▌
░░░░
█████████████████
░░░░
█████████████████
░░░░░
████████████████
███▄
░░
▀██████▀
░░░
███
█▀█▄▄
░░░░░░░░░░
▄███
░░
▀████▄▄▄▄▄▄████▀
░░░░░
▀▀██████▀▀
realpseudozach
Full Member
Offline
Activity: 170
Merit: 108
Re: How to send bitcoin automatically?
June 15, 2018, 08:32:29 AM
#14
Quote from: wsxdrfv on June 11, 2018, 03:31:40 AM
Quote from: DannyHamilton on June 08, 2018, 04:16:53 PM
Quote from: wsxdrfv on June 04, 2018, 06:48:03 AM
If bitcoin's balance is higher than some standard (like 0.2 BTC), how to send another address automatically?
I want to make this process automatic.
This question sounds like it has significant potential to be an
XY problem
.
Why do you want "to send another address automatically?" I suspect that there might be a better way to accomplish what you want instead of doing that.
Because I want to automatically move coin to more safe place.
Agree that you should receive to the cold storage but if you still want to do simple operations with a wallet. You can use
https://github.com/ruimarinho/bitcoin-core
to getbalance and if it's over a certain threshold simply sendToAddress. Note that you'll need a full node obviously.
━ ━━ ━━━ ━━━━━ ┃ Kriptode.com ┃ Bitcoin Lightning Games & Services ┃ ━━━━━ ━━━ ━━ ━
━ ━━ ━━━ ━━━━━
Twitter
━━━━━ ━━━ ━━ ━
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
How to send bitcoin automatically?
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Wallet software
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=====> Mycelium
=====> Hardware wallets
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Bitcoin Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
=======> Invites & Accounts
=====> Collectibles
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
=====> Gambling discussion
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=====> Web Wallets
=====> Exchanges
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Serious discussion
===> Ivory Tower
=> Archival
===> Корзина
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
===> MultiBit
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
===> Tokens (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
===> Bounties (Altcoins)
=> Speculation (Altcoins)
-----------------------------
Local
-----------------------------
=> العربية (Arabic)
===> العملات البديلة (Altcoins)
=====> النقاشات
===> إستفسارات و أسئلة المبتدئين
===> التعدين
===> النقاشات الأخرى
===> منصات التبادل
=> Bahasa Indonesia (Indonesian)
===> Marketplace (Bahasa Indonesia)
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
===> Trading dan Spekulasi
===> Ekonomi, Politik, dan Budaya
===> Topik Lainnya
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=====> Tokens (Español)
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
===> Trgovina
===> Altcoins (Hrvatski)
=====> Announcements (Hrvatski)
===> Off-topic (Hrvatski)
=> Deutsch (German)
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Altcoins (Deutsch)
=====> Announcements (Deutsch)
===> Marktplatz
=====> Auktionen
=====> Suche
=====> Biete
=> Ελληνικά (Greek)
===> Αγορά
===> Mining Discussion (Ελληνικά)
===> Altcoins (Ελληνικά)
=====> Altcoin Announcements (Ελληνικά)
=====> Altcoin Mining (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=====> Annonces
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> 日本語 (Japanese)
===> アルトコイン
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> Nigeria (Naija)
===> Politics and society (Naija)
===> Off-topic (Naija)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Pilipinas
===> Altcoins (Pilipinas)
=====> Altcoin Announcements (Pilipinas)
===> Pamilihan
===> Others (Pilipinas)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=====> Nowe kryptowaluty i tokeny
=====> Tablica ogłoszeń (altcoiny)
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Бизнес
=====> Барахолка
=====> Обменники
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Альтернативные криптовалюты
=====> Токены
=====> Бayнти и aиpдpoпы
===> Хайпы
===> Работа
===> Разное
===> Oбcyждeниe Bitcoin
=====> Новости
=====> Юристы
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
=====> Discutii Servicii
===> Minerit
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=====> Anunturi Monede Alternative
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
=====> Fonlar
===> Proje Geliştirme
===> Alternatif Kripto-Paralar
=====> Madencilik (Alternatif Kripto-Paralar)
=====> Duyurular (Alternatif Kripto-Paralar)
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
===> Buluşmalar
=> Other languages/locations
Loading...