This script allows to send a specified number of (empty) batch transactions to L1. Optionally it can wait for the batch to be verified. The script interacts with L1 only. Basically it acts like a sequencer but without building a real rollup. It can be useful to test the Synchronizer and the Aggregator.
The script can be installed running go install
from this folder.
- Send 1 batch:
$ batchsender
- Send 42 batches:
$ batchsender send 42
Send the specified number of sequences, each one filled with the provided number of batches.
- Send 2 sequences with 42 batches each:
$ batchsender -s 2 send 42
Wait for batches to be verified on L1.
- Send 1 batch and wait for its proof:
$ batchsender -w send
- Send 2 sequences with 42 batches each and wait for the proofs:
$ batchsender -w -s 2 send 42
Prints verbose output to the console.
- Send 42 batches with verbose logs and wait for the proofs:
$ batchsender -v -w send 42