Suppose I have an application that receives funds from users and instantly moves them into an associated cold storage account.
If one of our nodes detects a transaction broadcast to one of our addresses, can I then generate and broadcast a signed txn sending the funds from the detected transaction to an associated cold storage, without waiting for the block to be mined or any confirmations?
Will the signed txn I generate succeed (assuming the initial transaction itself succeeds and wasn't an invalid broadcast)?
Block #998 is mined
A broadcasts txn to send 5 ETH to B
B broadcasts txn to send 5 ETH to C
Block #999 is mined
B, and C were both new wallets which had 0 balance.
A's broadcast was valid, just not yet confirmed nor mined.
Example ignores fees for sake of simplicity