public Transaction transaction(
      final TransactionType transactionType, final Bytes payload, final Address to) {
    return switch (transactionType) {
      case FRONTIER -> frontierTransaction(payload, to);
      case EIP1559 -> eip1559Transaction(payload, to);
      case ACCESS_LIST -> accessListTransaction(payload, to);
      case BLOB -> blobTransaction(payload, to);
      case DELEGATE_CODE -> null;
        // no default, all types accounted for.
    };
  }
Generates a sequence of blocks with some accounts and account storage pre-populated with random
data.
ethereum/core/src/test-support/java/org/hyperledger/besu/ethereum/core/BlockDataGenerator.java