github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/scripts/batchsender/README.md (about)

     1  # Batchsender
     2  
     3  ## Overview
     4  
     5  This script allows to send a specified number of (empty) batch transactions to
     6  L1.  Optionally it can wait for the batch to be verified.  The script interacts
     7  with L1 only. Basically it acts like a sequencer but without building a real
     8  rollup.  It can be useful to test the Synchronizer and the Aggregator.
     9  
    10  ## Usage
    11  
    12  The script can be installed running `go install` from this folder.
    13  
    14  ### Examples
    15  
    16  - Send 1 batch:
    17  
    18  ```sh
    19  $ batchsender 
    20  ```
    21  
    22  - Send 42 batches:
    23  
    24  ```sh
    25  $ batchsender send 42
    26  ```
    27  
    28  ## Flags
    29  
    30  ### `--sequences, -s <nsequences>` 
    31  
    32  Send the specified number of sequences, each one filled with the provided
    33  number of batches.
    34  
    35  ### Examples
    36  
    37  - Send 2 sequences with 42 batches each:
    38  
    39  ```sh
    40  $ batchsender -s 2 send 42
    41  ```
    42  
    43  ### `--wait, -w` 
    44  
    45  Wait for batches to be verified on L1.
    46  
    47  ### Examples
    48  
    49  - Send 1 batch and wait for its proof:
    50  
    51  ```sh
    52  $ batchsender -w send
    53  ```
    54  
    55  - Send 2 sequences with 42 batches each and wait for the proofs:
    56  
    57  ```sh
    58  $ batchsender -w -s 2 send 42
    59  ```
    60  
    61  ### `--verbose, -v` 
    62  
    63  Prints verbose output to the console.
    64  
    65  ### Examples
    66  
    67  - Send 42 batches with verbose logs and wait for the proofs:
    68  
    69  ```sh
    70  $ batchsender -v -w send 42
    71  ```