MEVerse Dev Docs
MEVerse Dev Docs (EN)
MEVerse Dev Docs (EN)
  • Welcome
  • MEVerse Introduction
    • MEVerse Core Design
    • Proof of Formulation
    • Customizable Multi Chain
    • Level Tree
    • Block Redesign
  • Get started
    • How to Set Up a Node
    • Add MEV in Account
    • IDE & Dev Tool
    • Deploy Smart Contract
    • Check Deployment
  • MEVerse Network Structure
    • Generator Node
    • Observer Node
    • Seed Node
    • Public Node
    • Bridge Node
  • Smart Contract
    • Solidity - Smart Contract Language
    • IDE and Tools
      • Remix
      • Truffle
      • Hardhat
      • MEVerse Scan(Explorer)
      • Connecting MetaMask
    • Sample Contracts
    • Testing Guide
  • MEVerse Mining Ecosystem
  • MEVerse Links
    • MEVerse Website
    • MEVerse Whitepaper
    • MEVerse Blog
    • MEVerse Disclosure & Updates (Xangle)
    • MEVerse Coinmarketcap
Powered by GitBook
On this page
  1. Get started

How to Set Up a Node

PreviousGet startedNextAdd MEV in Account

Last updated 2 years ago

MEVerse is open source on Github(). Anybody can download codes from github.

Environment

Linux

Golang 1.18.2

C compiler(gcc 4.9.0 or later, mingw etc.)

If you sync from the Genesis block, you can start node with following commands

$ git clone https://github.com/meverselabs/meverse
$ cd ./meverse/cmd/node
$ go build
$ ./node

MEVerse saves context snapshots once a day. You can also download latest data to start node from recent block height.

  1. Download context file in

  2. Unzip the zipcontext file, you will find data folder and _config.toml

  3. Create ./meverse/cmd/node/ndata folder and place data/context file

  4. Overwrite _config.toml file's InitGenesisHash, InitHeight, InitHash, InitTimestamp in ./meverse/cmd/node/config.toml file

  5. Run after build

zipcontext.sh
git clone https://github.com/meverselabs/meverse
cd ./meverse/cmd/node
wget https://rpc.meversemainnet.io/zipcontext
unzip zipcontext
mv ./data ./ndata
sed -e "s/InitGenesisHash = \"\"/$(sed '1!d' _config.toml)/" config.toml > config.toml_ && mv config.toml_ config.toml
sed -e "s/InitHeight = 0/$(sed '2!d' _config.toml)/" config.toml > config.toml_ && mv config.toml_ config.toml
sed -e "s/InitHash = \"\"/$(sed '3!d' _config.toml)/" config.toml > config.toml_ && mv config.toml_ config.toml
sed -e "s/InitTimestamp = 0/$(sed '4!d' _config.toml)/" config.toml > config.toml_ && mv config.toml_ config.toml
# sed -e "s/RPCPort = 8541/RPCPort = 8541/" config.toml > config.toml_ && mv config.toml_ config.toml
rm -r _config.toml
rm -r zipcontext
go build
./node

You can exchange data with mainnet through RPC. 8541 port is set as a basic port, and it can be edited in RPCPort field in /cmd/node/config.toml.

https://github.com/meverselabs/meverse
https://rpc.meversemainnet.io/zipcontext