Sov-Sequencer
Simple implementation of based sequencer generic over batch builder and DA service.
Exposes 2 RPC methods:
sequencer_acceptTx
where input is supposed to be signed and serialized transaction. This transaction is stored in mempoolsequencer_publishBatch
without any input, which builds the batch using batch builder and publishes it on DA layer.
How to use it with sov-cli
sov-cli
from demo-stf
crate has support for interacting with sov-sequencer.
Make sure that this tool is build
Submit transactions
This command is similar to serialize call from demo-rollup
README, with one last parameter, RPC endpoint for sov-sequencer.
When demo-rollup with enabled sequencer starts, it prints on which endpoint it listens:
Let's submit 3 transactions: create token
, mint
and transfer
:
# create token
# mint
# transfer
Now these transactions are in the mempool
Publish blob
In order to submit transactions to DA layer, sequencer needs to publish them. This can be done by triggering publishBatch
endpooint:
After some time, processed transaction should appear in logs of running rollup