NotArb Setup

This guide covers the complete setup process for using arb-assist with NotArb onchain-bot.

Overview

NotArb integration allows arb-assist to:

  • Generate JSON configuration files

  • Create markets.json with trading pairs

  • Provide lookup-tables.json for ALUTs

  • Generate notarb-attributes.json for dynamic settings

  • Control bot parameters based on market conditions

Prerequisites

Before starting, ensure you have:

  • ✅ NotArb Release cloned from GitHub

  • ✅ Java 11+ installed

  • ✅ arb-assist installed in onchain-bot directory

  • ✅ Protected keypair file

  • ✅ Sufficient SOL for operations

Initial Setup

Step 1: Directory Structure

Your directory should look like:

Step 2: Keypair Protection

circle-info

NotArb uses a protected keypair format for enhanced security

  1. Configure keypair path in notarb-global.toml:

  1. Protect the keypair:

  1. Update path to protected keypair:

Step 3: Configure arb-assist

Create your config.toml in the onchain-bot directory:

Running the System

Step 1: Start arb-assist

Navigate to onchain-bot directory:

Using tmux:

Step 2: Start NotArb

From the main NotArb directory:

Step 3: Monitor Operation

View logs:

Generated Files

notarb-config.toml

Main configuration file:

markets.json

Trading pairs organized by groups:

Structure:

  • 2D array matching mints_to_arb configuration

  • Each sub-array is a transaction group

  • Timestamp for version tracking

lookup-tables.json

Address lookup tables:

Purpose:

  • Reduce transaction size

  • Include commonly used addresses

  • Updated dynamically

notarb-attributes.json

Dynamic trading parameters:

Updates based on:

  • Market conditions

  • Network congestion

  • Competition levels

Advanced Configuration

JVM Optimization

circle-info

Note: The JVM optimization settings below are general suggestions. For optimal performance based on your specific hardware and workload, please refer to NotArb's official documentation.

Tune Java performance:

JVM heap size recommendations:

  • 16GB RAM: -Xmx8192m

  • 32GB RAM: -Xmx16384m

  • 64GB RAM: -Xmx32768m

circle-info

Note: These are JVM heap settings only. For total system RAM requirements, refer to NotArb's official documentation.

Thread Management

Configure thread pools:

Considerations:

  • 0: Adapts to workload

  • -1: Maximum parallelism

  • Fixed: Predictable resource usage

Meteora DLMM Settings

For Meteora dynamic pools:

Higher values:

  • More price points

  • Better pricing

  • Higher computation

WSOL Management

Automatic unwrapping:

Multi-Region Setup

Jito Regions

Configure multiple regions:

Benefits:

  • Geographic distribution

  • Redundancy

  • Lower latency

Proxy Configuration

For distributed execution:

IP file format:

Performance Optimization

Connection Pools

Optimize RPC usage:

Flash Loan Configuration

Enable capital efficiency:

Benefits:

  • No upfront capital

  • Larger positions

  • Higher profits

Monitoring & Troubleshooting

Key Log Messages

Successful Arbitrage:

Market Updates:

Configuration Reload:

Common Issues

Java Heap Error:

Solution: Increase -Xmx value in jvm_args

ALUTs Error:

Solution: Reduce max_lookup_tables

No Markets Found: Check:

  1. GRPC connection active

  2. Filter thresholds not too strict

  3. DEXes configured correctly

Performance Metrics

Monitor in NotArb logs:

  • Transaction success rate

  • Average execution time

  • Profit per transaction

  • Gas efficiency

Best Practices

Configuration Management

  1. Version Control

  2. Backup Configurations

  3. Test Changes

    • Make small incremental changes

    • Monitor for 1-2 hours

    • Roll back if issues arise

Security

  1. Keypair Protection

    • Always use protected keypairs

    • Store backups securely

    • Never expose unprotected keys

  2. Access Control

    • Restrict onchain-bot directory

    • Use proper file permissions

    • Monitor access logs

Maintenance

Daily:

  • Check bot is running

  • Review profit/loss

  • Monitor error logs

Weekly:

  • Analyze performance trends

  • Update configurations

  • Check for NotArb updates

Monthly:

  • Full system review

  • Optimize JVM settings

  • Update dependencies

Integration Checklist

Last updated