foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Batch transactions with multiple private keys

Open 0xask3 opened this issue 2 years ago • 4 comments

Component

Forge

Describe the feature you would like

Can we introduce batching of transactions made by wallets with different private keys and include them in the same block? So instead of waiting for the previous transaction to be mined, we can order the transactions and broadcast them all at once. As of now, it is waiting for confirmation from transaction made by wallet with private key x to proceed broadcasting the transaction made by private key y (shown in additional context)

Additional context

[⠢] Compiling...
No files changed, compilation skipped
Script ran successfully.

==========================

Estimated total gas used for script: 58010

Estimated amount required: 0.0005801 ETH

==========================

###
Finding wallets for all the necessary addresses...
##
Sending transactions [0 - 1].
⠁ [00:00:01] [#################################>--------------------------------] 1/2 txes (1.2s)
⠉ [00:00:07] [##############################################################] 1/1 receipts (0.0s)
#####
✅ Hash: 0x2ed7a4df9bf55806999ac7777463ae20267f98adfcb3af9ca61bcaba543b214b
Block: 26379340
Paid: 0.00021 ETH (21000 gas * 10 gwei)

⠉ [00:00:10] [##################################################################] 2/2 txes (0.0s)
⠉ [00:00:07] [##############################################################] 1/1 receipts (0.0s)
#####
✅ Hash: 0xe41081004a74c83e90ebb1917254a41e65ec9ad8f4eeabecf7386b69c8da4317
Block: 26379344
Paid: 0.00021 ETH (21000 gas * 10 gwei)


Transactions saved to: /Users/******/run-latest.json



==========================

0xask3 avatar Jan 15 '23 21:01 0xask3