How to Install and Use Shardeum: A Step-by-Step Guide πŸš€

Monday, Dec 16, 2024 | 8 minute read

GitHub Trend
How to Install and Use Shardeum: A Step-by-Step Guide πŸš€

Unlocking Blockchain’s Future: This groundbreaking auto-scaling platform guarantees high security, low fees, and rapid transactions through dynamic state sharding. Developers thrive with seamless EVM compatibility and an engaged global community! πŸš€πŸŒ

In the rapid advancement of blockchain technology, a new star is emerging, and that star is Shardeum! As the demand for decentralized applications and scalability continues to grow, Shardeum is leading the future of blockchain with its unique technological architecture and innovative vision. ✨

Shardeum is an advanced EVM (Ethereum Virtual Machine) based auto-scaling blockchain platform that is redefining the future of blockchain technology from a fresh perspective.🌐 In this project, decentralization, community involvement, and high scalability are at the core of its design, aiming to provide users and developers with a secure and convenient environment to unleash their limitless creativity!

Shardeum’s innovative architecture takes full advantage of Dynamic State Sharding technology, significantly speeding up transaction processing and effectively reducing transaction fees. πŸ’° This novel design ensures that the platform operates efficiently on a foundation of high security and decentralization. Moreover, Shardeum is dedicated to creating a user-friendly environment for users and developers, fostering the birth of more decentralized applications (DApps). Let’s explore this new world together!

πŸ”₯ Core Advantages: The Magic of Shardeum πŸ”₯

In the vast landscape of blockchain, Shardeum stands out with its remarkable advantages. πŸ’‘ First, its horizontal scalability architecture allows for parallel processing through dynamic state sharding, providing exceptionally rapid services. Second, Shardeum employs a hybrid consensus mechanism that combines proof of stake and credential verification, greatly enhancing security through an automatic rotation system! Furthermore, the participation of a global community and the setup of nodes further increase transactions per second (TPS), making the network more efficient and promoting the thriving development of the decentralized ecosystem! πŸ’ͺ

πŸ’» The Best Choice for Developers: Shardeum’s Developer-Friendliness πŸ’»

For developers, Shardeum is like a fertile ground, an excellent platform for building decentralized applications, thanks to its high compatibility with EVM. πŸ› οΈ This means that existing DApps and smart contracts can be migrated to the Shardeum platform effortlessly. It’s incredibly convenient! Coupled with easy resource setups and one-click installation options, developers can easily join this vibrant and passionate developer community, creating endless possibilities!

πŸ’° A Robust Economic Model: Shardeum Token SHM πŸ’°

The total supply of Shardeum’s token SHM is set at 508 million, with a carefully designed distribution structure that ensures the token’s utility and liquidity. πŸ“ˆ Of this, 51% is allocated for node mining, 18% for public sale, 15% for the team, 11% for foundation development, and 5% to support ecosystem projects and airdrops. This token economics effectively promotes the healthy growth of the entire network, allowing every participant to enjoy the rewards!

πŸ—ΊοΈ A Clear Roadmap: The Future Development of Shardeum πŸ—ΊοΈ

Shardeum has developed a detailed roadmap, planning key milestones in the next few years, including:

  • 2023:

    • Q1: Launch the first phase of the incentivized testnet, let us witness the first step into the future;
    • Q2: Conduct comprehensive security audits to ensure robustness at every stage;
    • Q3: Roll out the second phase of the incentivized testnet and launch two bug bounty projects;
    • Q4: Hot launch of the third phase of the incentivized testnet, continuing to accelerate forward!
  • 2024:

    • Q1: Ongoing development and feature enhancements, bringing new surprises;
    • Q3 and Q4: Anticipate expansions and major product updates, the exciting future is just ahead!

πŸ‘₯ The Power of Community: Global Support at its Core πŸ‘₯

Shardeum’s glorious achievements are inseparable from its thriving community network! 🌍 The platform has hosted over 400 events in 19 countries, attracting more than 26,500 participants, enhancing interaction and cooperation in the ecosystem. This force propels us toward greater goals!

✨ Developer Resources: Making Participation Easy ✨

To facilitate developers, Shardeum offers a wealth of resources, helping them easily run nodes and achieve one-click setup.

πŸ–₯️ With this, developers become active in the network, forming a vital foundation for community prosperity. If you’d like to explore and participate in Shardeum’s grand project, be sure to visit the Shardeum website to discover more exciting content! 🌈

πŸ› οΈ Installation Steps: Quick Start with Shardeum πŸš€

To successfully use Shardeum, we need to ensure that some essential software is installed on our system. Please confirm that the following requirements are met:

  • Node.js (v18.19.1): Node.js is an open-source JavaScript runtime framework allowing JavaScript code to run on servers;
  • npm (v10.2.4): npm is the package manager for Node.js, making it easy to install required JavaScript libraries;
  • Rust (v1.74.1): Rust is a systems programming language for high-performance applications;
  • Docker (optional): If you want to deploy applications in a containerized way, Docker will be your great helper!

Specific Installation Steps πŸ”§

  1. Clone the Repository: Let’s begin by cloning the Shardeum code repository! This can be done with the following command:

    git clone https://github.com/shardeum/shardeum.git
    cd shardeum
    

    Note: The git clone command will copy everything from the remote repository to your local environment, and then cd shardeum takes you into that directory where subsequent operations will take place.

  2. Install Dependencies: After entering the project directory, we need to install all dependencies, as this is a crucial step:

    npm ci
    

    Note: npm ci installs all dependencies according to the package-lock.json file, ensuring consistency among all developers’ environments, which is vital!

  3. Configure Network: Next, we need to apply network-related patches to configure Shardeum’s network settings:

    git apply debug-10-nodes.patch
    

    Note: This command modifies the local code based on the content in the debug-10-nodes.patch file, usually used for quick fixes or feature enhancements to help you get started quickly!

  4. Compile the Project: Once the dependencies are installed, we need to compile the project to ensure the code runs correctly:

    npm run prepare
    

    Note: npm run prepare runs corresponding commands according to the scripts defined in package.json, ensuring that the code compiles successfully and can be executed.

  5. Install Shardus CLI: Finally, we need to install the Shardus command-line tool and the archiving updater for future use:

    npm install -g shardus
    npm update @shardus/archiver
    

    Note: The -g flag indicates a global installation, allowing us to use the shardus command anywhere without worrying about forgetting the path, while npm update ensures our dependencies remain up to date!

🌐 Running the Network Locally: Starting a Shardeum Test Environment 🌐

Now, we can finally start a Shardeum network with 10 nodes locally for testing! The command to start it is as follows:

shardus start 10

Note: This command launches 10 nodes, simulating a real blockchain network and allowing us to conveniently conduct various tests with high efficiency!

πŸ–₯️ Running JSON-RPC Server: Interacting with Shardeum Network

Before interacting with the Shardeum network, we need to start a JSON-RPC server; let’s complete this task:

  1. Clone the JSON-RPC Server Repository:

    git clone https://github.com/shardeum/json-rpc-server.git
    cd json-rpc-server
    npm install
    

    Note: Again, we use git clone to obtain the JSON-RPC server’s code; upon entering the directory, we use npm install to install its dependenciesβ€”our preparation is on point!

  2. Start the Server:

    Once installed, we can start the JSON-RPC server with the following command:

    npm run start
    

    Note: Once started, the default RPC address will be http://localhost:8080. Ensuring it operates correctly is fundamental for our interaction with the blockchain!

πŸ”‘ Testing with MetaMask: Connecting Your Wallet

To conduct tests on the local Shardeum network, MetaMask is a great tool. Next, we’ll configure MetaMask through the following steps:

  1. Install MetaMask Extension: First, visit the MetaMask website to download and install the MetaMask extension.

  2. Add Shardeum Network to MetaMask: In MetaMask, we need to manually add the Shardeum network, filling in the following information:

    • Network Name: Shardeum
    • RPC URL: http://localhost:8080
    • Chain ID: 8082
    • Currency Symbol: SHM
    • Block Explorer URL: http://localhost:6001/

    Note: Providing the correct information is crucial to ensure that MetaMask can smoothly connect to our local Shardeum network, let’s finalize this step!

  3. Get SHM Tokens for Testing: If you wish to use tokens on the test network, you’ll need to add your wallet address in the src/config/genesis.json file to receive SHM tokens:

    "YOUR-WALLET-ADDRESS": {
        "wei": "200000000000000000000000000"
    },
    

    Note: Be sure to replace "YOUR-WALLET-ADDRESS" with your actual wallet address so that you can receive the corresponding tokens on the test networkβ€”go ahead and do this!

🧹 Stopping and Cleaning Up: Maintaining Your Test Environment

After completing your tests, remember to stop the network and clean up resources promptly using the following command:

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

Note: This command sequentially stops the Shardeum network, clears all temporary files, and removes instances, keeping our environment tidy and ensuring continuous efficient operation.

πŸ” Health Check: Monitoring Node Status

While developing and running, checking the health status of nodes is crucial for a smooth experience! We can monitor status through several endpoints:

  • GET /is-alive: If the server is still running, it will return a 200 status code, indicating the server is active, fantastic!
  • GET /is-healthy: This is a health check similar to /is-alive, and it may expand with more features in the future.

With these steps, you should now be able to successfully launch and use the Shardeum blockchain network locally! ✨ Let’s join forces in this new blockchain world to create the future together! 🌈

Β© 2024 - 2025 GitHub Trend

πŸ“ˆ Fun Projects πŸ”