Skip to main content

Quickstart

Ready to get your node up and running? This streamlined process will guide you through launching either a bidder or provider node on the mev-commit network.
1

📥 Download

Start by downloading the latest setup script from our repository.
❯_ terminal
curl -o launchmevcommit \
https://raw.githubusercontent.com/primevprotocol/scripts/main/launchmevcommit
2

🛠️ Permission

Ensure the script is executable with the following command:
❯_ terminal
chmod +x launchmevcommit
3

🚀 Launch

Execute the script to initiate your node, selecting either a bidder or provider configuration based on your role in the network.
./launchmevcommit --node-type bidder
You need to make sure that the peer-to-peer port 13522 on your local machine is accessible through a public IP address. This setup enables the provider node to initiate incoming connections to your node.

Script Overview

This script automates the setup and initialization of your Primev node, catering to both bidder and provider roles. Below is a detailed breakdown of the script’s operations:

1. Initialization

  • Sets up essential variables like the RPC URL (https://chainrpc.testnet.mev-commit.xyz) for network communication and the node type (either bidderorprovider`).
  • Establishes the root directory ($HOME/.mev-commit) where the mev-commit node will be installed.

2. Download

  • Fetches the appropriate mev-commit binary for your system from the Primev GitHub releases page, considering your operating system and architecture.

3. Installation

  • Extracts the downloaded binary into the specified root directory, ensuring all necessary executables are correctly placed for the node’s operation.

4. Configuration

  • Initializes the mev-commit node with your specified settings, including the node type and the RPC endpoint, along with necessary contract addresses for the node’s functionality.

5. Wallet Setup

  • Generates a new private key and wallet address for your node and secures it with test ether to facilitate transactions within the testnet environment.

6. Node Startup

  • Launches the mev-commit node in the background tailored to the specified role, enabling it to begin its operations within the Primev network.

7. Cleanup

  • Includes a cleanup function to ensure the node is properly shut down when the script exits, preventing any residual processes.
If you want to perform a manual setup with detailed steps please skip to manual start mev-commit section.