How to run Sunrise Rollkit
As an example, here is how to use Rollkit to create an L2 chain and run it on the Sunrise’s Data Availability Layer.
Dependencies
Section titled “Dependencies”Dependencies and general installation instructions for Ubuntu 22.04.
Set up Sunrise Data
Section titled “Set up Sunrise Data”Rollkit support is provided via a server included in sunrise-data. See Rollkit documentation for the role of the DA server.
See Sunrise Data document to set it up. By default, the GRPC server for Rollkit support listens on port 7980.
Run Rollkit
Section titled “Run Rollkit”-
Clone rollkit repo
Terminal window cd ~git clone https://github.com/rollkit/rollkit.gitcd rollkitgit checkout v0.14.1 # latest major versionmake install -
Start rollkit chain Use
--rollkit.da_addressoption to connect to the DA server. The other port specification options are used to avoid conflicts when running sunrised locally. See Rollkit documentation for other chain configuration.Terminal window rollkit start --rollkit.aggregator \--rollkit.sequencer_rollup_id sunrise \--rollkit.da_address grpc://localhost:7980 \--p2p.laddr tcp://0.0.0.0:25656 --rpc.laddr tcp://127.0.0.1:25657 -
Work