I run a bitcoin full node,at that node i have an Address A.
Assuming that Address A receive an Amount from Address B.(i can get UTXO information from blockchain.info API) How can I automaticlly resend the received amount To an Address C (on 0 confirmations) before its display in my wallet.
In fact i want to create a raw transaction with that UTXO information (txid,vout and amount) and send it to Address C.
That UTXO belong to my private key so i can sign it and send it to the network.
Transaction must be created and send to the network before block is confirmed, so that in most cases the receiving transaction and sending transaction are confirmed in the same block that is mined.
This is technically possible, because I have seen this many times (https://explorer.bitcoin.com/btc/address/1Nc4oHe7TeDNjnvGfm7ZB6Pi2YtkST9znn).
But the question is how ?