Quick Start Guide

Welcome to Trunk! This guide will help you get up and running quickly with the Trunk network.

Overview

Trunk is a decentralized network that enables secure and efficient data validation. This guide will help you:

  • Set up your development environment
  • Connect to the Trunk network
  • Run your first validation

Installation

  1. Install the Trunk CLI:
npm install -g @trunk/cli
  1. Initialize your project:
trunk init my-project
cd my-project
  1. Install dependencies:
npm install

Basic Usage

1. Configure Your Environment

Create a .env file:

TRUNK_NODE=testnet
TRUNK_API_KEY=your-api-key

2. Create Your First Validator

import { TrunkValidator } from '@trunk/core';

const validator = new TrunkValidator({
  name: 'my-validator',
  port: 8545
});

await validator.start();

3. Run the Example

npm run example

Next Steps

Need Help?