reth_testing_utils::generators

Function random_tx

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

Generates a random legacy [Transaction].

Every field is random, except:

  • The chain ID, which is always 1
  • The input, which is always nothing