Introduction

EigenKub is a 100% Ethereum-compatible blockchain that allows you to build and deploy decentralized applications using the same tools and languages you're already familiar with. This guide will help you set up your development environment and deploy your first smart contract on EigenKub.

Prerequisites

  • Node.js v16 or later
  • npm or yarn
  • Basic knowledge of Ethereum and Solidity
  • MetaMask wallet

Installation

To get started with EigenKub development, you'll need to install the EigenKub CLI, which provides a set of tools for creating, testing, and deploying smart contracts.

bash
# Install the EigenKub CLI
npm install -g eigenkub-cli

# Initialize a new project
eigenkub init my-dapp

# Change directory
cd my-dapp

# Install dependencies
npm install

# Start the development server
npm run dev

Configure Your Project

Once you've created a new project, you'll need to configure it to connect to the EigenKub network. Create a truffle-config.js file in your project root with the following content:

javascript
module.exports = {
  networks: {
    development: {
      host: "127.0.0.1",
      port: 8545,
      network_id: "*"
    },
    eigenkub: {
      provider: () => new HDWalletProvider(
        process.env.MNEMONIC,
        "https://rpc.eigenkub.com"
      ),
      network_id: 1337,
      gas: 5500000,
      confirmations: 2,
      timeoutBlocks: 200,
      skipDryRun: true
    }
  },
  compilers: {
    solc: {
      version: "0.8.17"
    }
  }
}

Connect to EigenKub Network

To connect to the EigenKub network, you'll need to add it to your MetaMask wallet. Click the network dropdown in MetaMask and select "Add Network". Then enter the following details:

  • Network Name: EigenKub
  • RPC URL: https://rpc.eigenkub.com
  • Chain ID: 1337
  • Currency Symbol: KUB
  • Block Explorer URL: https://explorer.eigenkub.com

Get KUB for Development

To deploy contracts and interact with the EigenKub network, you'll need KUB tokens. You can acquire KUB from exchanges or request them from the community.