Skip to content

L2 Blockchains

It is recommended to run the full consensus node locally, without relying on an external RPC. This ensures better reliability and control over your L2 deployment.

Sunrise Consensus Node Document

sunrise-data, and rollkit need to be run. The integration provides:

  • Native data availability through Sunrise
  • Sovereign rollup capabilities
  • Customizable execution environment
  • Simple configuration and deployment

sunrise-data, optimism and op-geth need to be run. Key points:

  • The local EVM L1 chain is only used to meet OP Stack requirements
  • The actual data (metadata) is stored in Sunrise
  • Use Ganache, Hardhat, Anvil or similar for local L1 chain
  • Sunrise handles the actual data availability
TypeCPUArchitectureMemDiskBandwidthPurpose
Rollkit + Sunrise Data4 Corex86_6416 GB1 TB SSD1 GbpsDevelopment and testing
OP Stack + Sunrise Data6 Corex86_6432 GB1 TB SSD1 GbpsProduction deployment

Additional considerations:

  • SSD should be enterprise-grade for production
  • Bandwidth requirements increase with transaction volume
  • Memory requirements scale with state size
  • Rollkit
    • BeaconKit (option): By combining BeaconKit and Rollkit, EVM compatible L2 blockchain is possible to develop.
    • Provides full EVM compatibility while maintaining Sunrise DA benefits
  • OP Stack
    • Comprehensive documentation for OP Stack deployment
    • Integration guides for various components
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ │ │ │ │ │
│ L2 Blockchain │────▶│ Sunrise DA │────▶│ Validator │
│ │ │ Layer │ │ Network │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ ▲
│ │ │
▼ ▼ │
┌─────────────────┐ ┌─────────────────┐ │
│ │ │ │ │
│ User │ │ DA Proof │─────────────┘
│ Applications │ │ Verification │
└─────────────────┘ └─────────────────┘
  1. Setup Sunrise DA Node
    • Deploy a Sunrise node or connect to the testnet
    • Configure network parameters
    • Set up validator if needed
    • Verify node synchronization
  2. Configure L2 Framework
    • Install required dependencies
    • Set up configuration files
    • Connect to Sunrise DA layer
    • Configure network parameters
  3. Implement DA Integration
    • Configure blob submission
    • Set up proof verification
    • Implement fee handling
    • Set up monitoring
  4. Testing and Deployment
    • Test on testnet
    • Verify DA proofs
    • Deploy to production
    • Monitor performance
[da]
rpc_address = "http://localhost:26657"
fee_denom = "uusdrise"
gas_price = "0.025"
[rollup]
chain_id = "my-rollup-1"
Terminal window
# Environment variables
DA_SERVER=http://localhost:8547
BLOB_RPC=http://localhost:26657
  1. Security
    • Always verify DA proofs
    • Use secure RPC endpoints
    • Implement proper error handling
    • Regular security audits
  2. Performance
    • Optimize blob sizes
    • Implement proper caching
    • Monitor gas costs
    • Regular performance testing
  3. Reliability
    • Implement retry mechanisms
    • Monitor DA proof status
    • Set up proper logging
    • Regular backups
IssueSolutionPrevention
DA proofs not verifyingCheck RPC connection and proof formatRegular connection testing
High gas costsOptimize blob size and frequencyMonitor and adjust gas settings
Connection issuesVerify network configuration and firewall settingsRegular network monitoring