🌅
Sunrise / Gluon Docs
  • Home
    • 👋Sunrise
  • 📜Learn
    • 🌆Sunrise
      • Proof of Liquidity
      • Fee Abstraction
      • Data Availability
      • Gauges Voting
      • Liquidity Pool
      • Liquidity Incentive
      • Swap
      • TokenConverter
      • Fee
      • Lockup Account
      • Bribes
    • 💴$RISE
      • Allocations
    • 🏦Gluon
    • 💴$GLU
    • 🎓Thesis
      • App chain thesis
      • Interoperability
  • 🛠️Build
    • 🚀Quick Start
    • Client
    • L2 Blockchains
      • Rollkit
        • Sunrise Data
        • Rollkit L2 Chain
      • OP Stack
        • Sunrise Data
        • OP Stack L2 Chain
    • Validators
      • Proof of Data Availability
      • Self Delegation
  • 🏗️Run a Sunrise Node
    • Networks
    • Types of Nodes
      • Consensus
        • Full Consensus Node
        • Validator Node (Genesis)
        • Validator Node
        • Setup Cosmovisor
      • IBC Relayers
    • Resources
      • Upgrade
      • Environment
  • 🏗️Run a Gluon Node
    • Networks
    • Node
      • Validator Node
  • 🔗Links
    • GitHub
    • Discord
    • X (Twitter)
    • Medium
    • dev.to
  • 📓Deprecated (UnUniFi)
    • IBC Channels
    • Security
    • CosmWasm
      • Tutorial
      • Create Project
    • IYA Strategy
      • Interface
      • External CosmWasm chain with IBCHooks
      • External EVM chain with Axelar
    • Frontend
      • Cosmos Client TS
    • Resources
    • Setup ununifid
    • ununifid
      • Basic Commands
      • Module Commands
        • wasm
    • Build a Node
    • Build a Validator Node
    • Setup Cosmovisor
    • Mainnet Upgrades
    • IBC Relayer
Powered by GitBook
On this page
  • Sunrise Consensus Node
  • How to set up sunrise-data
  • Run IPFS on local
  • Start
  1. Build
  2. L2 Blockchains
  3. OP Stack

Sunrise Data

PreviousOP StackNextOP Stack L2 Chain

Last updated 29 days ago

acts as a relay server connecting the L2 chain to the Sunrise DA layer.

Sunrise Consensus Node

Requires a networked Sunrise node to operate. running Sunrise v0.3.0 or higher support Data Availability Layer.

Follow the on how to create a consensus node.

How to set up sunrise-data

  1. Running sunrised See for setting up.

  2. Clone sunrise-data repo

    cd ~
    git clone https://github.com/sunriselayer/sunrise-data.git
    cd sunrise-data
    make install
  3. Create and edit config.toml

    cp config.default.toml config.toml
    nano config.toml

    To connect to a local IPFS daemon, leave the ipfs_api_url field empty

    Change home_path to your .sunrise directory and publisher_account to your sunrised key's name

    [api]
    port = 8000
    ipfs_api_url = ""
    ipfs_addrinfo = ""
    
    [chain]
    address_prefix="sunrise"
    home_path="/home/ubuntu/.sunrise"
    keyring_backend="test"
    sunrised_rpc="http://localhost:26657"
    
    [publish]
    publisher_account="your_publisher_account"
    publish_fees="10000urise"
    
    [optimism]
    listen_address="127.0.0.1"
    port=3100
    data_shard_count=10
    parity_shard_count=10

The other fields can be left as is.

Run IPFS on local

  1. Run IPFS

    wget https://dist.ipfs.tech/kubo/v0.31.0/kubo_v0.31.0_linux-amd64.tar.gz
    tar -xvzf kubo_v0.31.0_linux-amd64.tar.gz
    cd kubo
    sudo ./install.sh
    ipfs init --profile=lowpower
    ipfs daemon
  2. Check the IPFS node ID and optionally share and add a remote peer

    ipfs id

Start

sunrise-data optimism

  home_path, keyring_backend, publisher_account must be entered values on your sunrised keyring. See and set with --keyring-backend test option. For home_path, enter the path where the sunrise keyring exists.   For sunrised_rpc, it is preferable to run sunrised locally, but if this is not possible, use the published RPC. See our . A local key pair is still required in such cases.

🛠️
Sunrise Data
Networks
Node Guide
Consensus Node
Network Document
Local Key Pair document