reth_testing_utils::generators

Function random_signed_tx

Source
pub fn random_signed_tx<R: Rng>(rng: &mut R) -> TransactionSigned
Expand description

Generates a random legacy [Transaction] that is signed.

On top of the considerations of random_tx, these apply as well:

  • There is no guarantee that the nonce is not used twice for the same account