长亭百川云 - 文章详情

md 示例2 \\a

1

9

2024-08-14

Shardeum Logo

An EVM-based autoscaling blockchain platform

License Discord Twitter

Table of Contents

Introduction

Shardeum is an innovative EVM-compliant blockchain platform that leverages dynamic state sharding to achieve unprecedented scalability. By implementing a sharding model, Shardeum ensures faster processing times and lower transaction costs without compromising security or decentralization.

Features

  • Scalability: Horizontal scalability through sharding
  • High Performance: Low latency and high throughput
  • Security: Advanced cryptographic techniques and robust consensus protocols
  • Decentralization: Truly decentralized network with no single point of failure
  • Interoperability: EVM compatibility for existing DApps and smart contracts

Getting Started

Prerequisites

  • Node.js (v18.16.1)
  • npm (v9.5.1)
  • Rust (v1.74.1)
  • Docker (optional, for containerized deployment)

Setting Up Your Environment

Shardeum requires specific versions of Nodejs, Rust and other build tools to run.

We have detailed setup instructions in this page

[!IMPORTANT]
This is a crucial step, ensure your local environment is correctly set up before proceeding with the next steps

Installation

  1. Clone the repository:
1git clone https://github.com/shardeum/shardeum.git
2cd shardeum
  1. Install dependencies:
1npm ci
  1. Network Configuration:
1git apply debug-10-nodes.patch

Learn more about the different config options here

  1. Compile project
1npm run prepare
  1. Install the Shardus CLI:
1npm install -g shardus
2npm update @shardus/archiver

Running the Network Locally

To start a local Shardeum network with 10 nodes, run:

1shardus start 10

Running the JSON-RPC Server

  1. Clone the JSON-RPC server repository:
1git clone https://github.com/shardeum/json-rpc-server.git
2cd json-rpc-server
3npm install
  1. Start the server:
1npm run start

The default RPC URL is http://localhost:8080.

Testing with MetaMask

To test your local Shardeum network using MetaMask:

  1. Install the MetaMask extension.
  2. Add the Shardeum network to MetaMask:

Stopping and Cleaning Up

To stop the network and clean up resources:

1shardus stop && shardus clean && rm -rf instances

Health Checks

Diagnostic endpoints to check the health of the node

  • GET /is-alive this endpoint returns 200 if the server is running.
  • GET /is-healthy currently the same as /is-alive but will be expanded.

Contributing

We welcome contributions! Please see our Contribution Guidelines for more information. All contributors are expected to adhere to our Code of Conduct.

Community

License

This project is licensed under the MIT License. See the LICENSE file for details.

相关推荐
广告图
关注或联系我们
添加百川云公众号,移动管理云安全产品
咨询热线:
4000-327-707
百川公众号
百川公众号
百川云客服
百川云客服

Copyright ©2024 北京长亭科技有限公司
icon
京ICP备 2024055124号-2