Simultaneous Transactions: Is It Feasible?

22 replies 140 views
n0c0inerSenior Member
Posts: 8 · Reputation: 1707
#1Nov 12, 2017, 03:31 AM
Quick question about future network speeds. So if I want to track this old address A, and it sends a transaction to address B at a specific time, can I get my bot to transmit a transaction to B at exactly the same moment? Like so it looks identical on the blockchain?
4 Reply Quote Share
0xBlockMember
Posts: 14 · Reputation: 139
#2Nov 12, 2017, 03:48 AM
Nah it doesn’t really work that way. Transactions go into blocks as groups. Even if you send yours right after, the miner can choose the order. It's totally up to them, and you can't predict which will be confirmed first.
1 Reply Quote Share
yield21Member
Posts: 24 · Reputation: 83
#3Nov 12, 2017, 10:07 AM
Exactly. If your bot notices that A has sent funds and it’s not confirmed yet, sending your tx right after won't help because of network delays. Each new block takes about 10 minutes to mine at least.
3 Reply Quote Share
Posts: 66 · Reputation: 24
#4Nov 12, 2017, 10:46 AM
Yeah but if both get into the same block, no one can tell which came first. You’ve got around 10 minutes to play with. Sure, higher fees can help prioritize your tx.
0 Reply Quote Share
yield21Member
Posts: 24 · Reputation: 83
#5Nov 12, 2017, 12:11 PM
But if he’s monitoring mempool, he only sees the tx once it’s confirmed. So, he wants to shoot his tx right after the first one? It can't work if he relies on confirmations. Anything not confirmed has no valid ID yet anyway.
6 Reply Quote Share
nick_hawkMember
Posts: 21 · Reputation: 185
#6Nov 12, 2017, 12:31 PM
Right, miners pick the order. And just because both have similar fees doesn’t mean both will go in the same block. If A's transaction gets there first, yours might still lag.
1 Reply Quote Share
MadNovaHero Member
Posts: 122 · Reputation: 3536
#7Nov 14, 2017, 07:16 PM
Getting both at the exact same second is pretty much impossible. Network delays and timestamp differences mess it up for everyone. The best bet is to offer a good fee.
3 Reply Quote Share
n0c0inerSenior Member
Posts: 8 · Reputation: 1707
#8Nov 14, 2017, 09:49 PM
Appreciate the thoughts, guys. Getting both tx in the same block is the goal. Higher fees have helped in some of my past attempts.
4 Reply Quote Share
m1kes4tFull Member
Posts: 60 · Reputation: 252
#9Nov 15, 2017, 03:26 AM
Yeah, if he’s watching the mempool, he can see unconfirmed transactions. With a higher fee on his tx, he might sneak it into the next block, achieving that tricky simultaneous feel.
3 Reply Quote Share
ColdGangMember
Posts: 73 · Reputation: 183
#10Nov 15, 2017, 04:56 AM
I think it’s slim. Even if both tx are sent at the same time, the network and miner realities play out. He needs to send the second right when he sees the first go through.
3 Reply Quote Share
chrisomegaFull Member
Posts: 69 · Reputation: 631
#11Nov 15, 2017, 10:18 AM
So you’re saying it’s better to set the same fee? If both tx have identical fees, they might land in the same block.
5 Reply Quote Share
gr3g.4ltFull Member
Posts: 28 · Reputation: 419
#12Nov 15, 2017, 02:48 PM
Sure, but they won’t ever be confirmed at the exact same tick. The block time rules mean there’s always an order recorded.
2 Reply Quote Share
ColdGangMember
Posts: 73 · Reputation: 183
#13Nov 15, 2017, 03:48 PM
Yeah, pretty much. If you want those to appear together, it’s key they both have the same rate, but A's tx can still mess everything up.
2 Reply Quote Share
chrisomegaFull Member
Posts: 69 · Reputation: 631
#14Nov 15, 2017, 07:37 PM
What is this about order? Miners give each tx index numbers in blocks. So transaction ordering is not about when they were sent… it’s about how miners place them.
1 Reply Quote Share
gr3g.4ltFull Member
Posts: 28 · Reputation: 419
#15Nov 15, 2017, 09:20 PM
But the indexes show the order in execution in blocks too, right? I thought that’s how confirmation works. Am I missing something?
3 Reply Quote Share
m1kes4tFull Member
Posts: 60 · Reputation: 252
#16Nov 16, 2017, 01:09 AM
Basically, if A->B and B->C depend on each other, it goes in that sequence. Independent tx can vary, though.
0 Reply Quote Share
chrisomegaFull Member
Posts: 69 · Reputation: 631
#17Nov 16, 2017, 03:53 AM
Even if he’s tracking dormant funds, the confirmation block rule doesn’t change anything. It’s still about finding a good fee strategy.
3 Reply Quote Share
alex.byteLegendary
Posts: 78 · Reputation: 5910
#18Nov 17, 2017, 06:48 PM
True. Essentially, the coinbase transaction has to be first, but the rest can be in any order miners choose.
4 Reply Quote Share
wizard_2016Full Member
Posts: 46 · Reputation: 575
#19Nov 17, 2017, 09:30 PM
Sort of, yeah. Alice->Bob has to be in block before Bob->Charlie. But as for other tx? Any slot really.
4 Reply Quote Share
Posts: 48 · Reputation: 19
#20Nov 18, 2017, 12:26 AM
All transactions in a block get timestamped when they’re mined, not how or when they were created. There’s no guarantee on order, just the block time.
4 Reply Quote Share

Related topics