Author

Topic: How to listen to a Bitcoin transaction? (Read 146 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
February 22, 2021, 06:19:38 AM
#8
Does it have to be blockchain.com or can you switch to another wallet like Electrum? I had no success finding anything for the blockchain wallet, but I came across an old thread where someone created an Electrum forwarded script that worked back in 2013. I don't have the skills to go over the code, so I suggest that someone who knows what he is doing checks if this is safe to use and still works:

--snip--

I don't know if the code is safe (as in no malicious code), but i know won't work because the code is for Python 2 and Electrum 1.X.
For the security aspect, it store password of the wallet on plain text, which isn't best practice. At very least you need to make sure only root only can read/modify the file.
legendary
Activity: 3528
Merit: 4945
February 21, 2021, 02:54:21 PM
#7
I want to make an automatic reaction to this fact. So that this payment, immediately after receipt to any of these addresses, is sent to one other address (as quickly as possible, directly with the nearest block).
how do smart people do it?

They don't.  There is VERY RARELY any good reason to do this.  You are increasing your transaction costs, and you generally aren't gaining anything that couldn't have been accomplished through a better design and proper use of hierarchical deterministic keys.
legendary
Activity: 2730
Merit: 7065
February 21, 2021, 12:44:04 PM
#6
member
Activity: 96
Merit: 36
February 21, 2021, 12:20:46 PM
#5
Thank you so much. this is not what I wanted. This service only monitors addresses and reports changes to the mail.
I need the service to automatically transfer it to another address as soon as the payment arrives at one of the specified addresses
without me.  automatically transfer
staff
Activity: 3500
Merit: 6152
February 21, 2021, 07:10:57 AM
#4
many thanks.
 I will try this method.
But I would like to have some ready-made software solutions for this or existing online services.

You can use Blocknomics payment forwarder for that[1]. You've also got the necessary plugins, in case you're planning to set up an e-commerce site[2].

[1] https://www.blockonomics.co/views/payment_forwarding.html#
[2] https://www.blockonomics.co/views/integrations.html
member
Activity: 96
Merit: 36
February 21, 2021, 06:59:52 AM
#3
many thanks.
 I will try this method.
But I would like to have some ready-made software solutions for this or existing online services.
staff
Activity: 3500
Merit: 6152
February 21, 2021, 05:34:34 AM
#2
There are two ways you can use to detect payments (I'd recommend the second one but it depends on what you're trying to do):

- By subscribing to the addresses using the WebSocket API: https://www.blockchain.com/api/api_websocket
- Using the xPub from your wallet with the "Receive payments" API: https://www.blockchain.com/api/api_receive

And then for the payment forwarding part, you can use the wallet API: https://www.blockchain.com/api/blockchain_wallet_api
member
Activity: 96
Merit: 36
February 21, 2021, 04:32:54 AM
#1
My blochaincom  wallet has a set of my addresses. I have the keys to them, and everything I need.
A payment is received at one of these addresses.
I want to make an automatic reaction to this fact. So that this payment, immediately after receipt to any of these addresses, is sent to one other address (as quickly as possible, directly with the nearest block).
how do smart people do it?
Thank you in advance.
Jump to: