-
Hello guys, Right now, I'm using this: your_tx = await router.swapExactETHForTokens(...) But when I measure the time before and after, it tells me that it took 0.02s to make this "await..." statement... Am I right to worry ? Or Tx is sent super-quickly and it's just the answer which is slow to arrive ? And is there a faster way to send Tx ?
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The transaction is sent immediately, and depending on the Signer used, the transaction may need to be fetched. If you are using a FallbackProvider, the transaction is given to all backends, to ensure it makes it to as wide a collection of mempools initially, as possible. Sending an unchecked transaction just means the return type is not fetched, so if you just want the result faster that will work, but the tx isn’t actually sent any faster. Make sense? |
Beta Was this translation helpful? Give feedback.
The transaction is sent immediately, and depending on the Signer used, the transaction may need to be fetched. If you are using a FallbackProvider, the transaction is given to all backends, to ensure it makes it to as wide a collection of mempools initially, as possible.
Sending an unchecked transaction just means the return type is not fetched, so if you just want the result faster that will work, but the tx isn’t actually sent any faster.
Make sense?