Getting Started with ON1Builder

This guide will help you get started with ON1Builder, covering the key concepts, installation, basic configuration, and your first run.

What is ON1Builder?

ON1Builder is a multi-chain blockchain transaction framework designed for high-performance, security, and reliability. It specializes in:

Key Concepts

Before diving into the installation, let's understand some key concepts:

Multi-Chain Architecture

ON1Builder can run across multiple blockchains simultaneously, with each chain having a dedicated worker managing blockchain-specific operations.

Chain Workers

Chain Workers are responsible for:

Safety Net

The Safety Net component provides protective mechanisms:

Transaction Simulation

Before executing transactions, ON1Builder can simulate them to:

Quick Installation

Here's a simplified installation process:

1. Clone the repository:


git clone https://github.com/John0n1/ON1Builder.git
cd ON1Builder
    

2. Set up your environment:


cp .env.example .env
# Edit .env with your API keys and wallet information
    

3. Install dependencies:


./setup_dev.sh
poetry shell
    

4. Run a basic test:


python -m on1builder test-connection --config configs/chains/config.yaml
    

For detailed installation instructions, see the Installation Guide.

Basic Configuration

The minimal configuration includes:

  1. Blockchain RPC Endpoints: HTTP and WebSocket endpoints for each chain
  2. Wallet Information: Address and private key for transaction signing
  3. Strategy Settings: Parameters for trading strategies

Example configuration (simplified):


# Chain-specific configuration
CHAIN_ID: "1"
CHAIN_NAME: "Ethereum Mainnet"
HTTP_ENDPOINT: "https://mainnet.infura.io/v3/YOUR_INFURA_KEY"
WEBSOCKET_ENDPOINT: "wss://mainnet.infura.io/ws/v3/YOUR_INFURA_KEY"
WALLET_ADDRESS: "0xYourEthereumWalletAddress"
WALLET_KEY: "YOUR_PRIVATE_KEY"

# Safety parameters
MAX_GAS_PRICE_GWEI: 100
MIN_PROFIT: 0.001
SLIPPAGE_DEFAULT: 0.05

# Monitoring
ENABLE_PROMETHEUS: true
    

For complete configuration options, see the Configuration Guide.

Your First Run

To run ON1Builder in a basic single-chain mode:


python -m on1builder run --config configs/chains/config.yaml
    

The system will:

  1. Initialize connections to the blockchain
  2. Set up monitoring components
  3. Begin watching for opportunities
  4. Execute transactions when profitable opportunities are found

You'll see log output indicating the system's status and any actions taken.

What's Next?

Now that you have ON1Builder running, you might want to:

  1. Explore advanced configuration options
  2. Set up the monitoring system
  3. Try running on multiple chains
  4. Learn how to create custom strategies

For any issues, check the Troubleshooting Guide.