foundry-rs / foundry-rs/foundry

Batch transactions with multiple private keys

Open
#4,099 4 comments 3 reactions 0 assignees View on GitHub
A-private-transactions C-forge Cmd-forge-script T-feature
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
16h 38m
Merged PRs (30d)
511

Description

### 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

==========================
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.