Skip to content

OnChainMee/meteora-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteora Agent

A tool for monitoring Meteora DLMM (Dynamic Liquidity Market Maker) transactions on Solana.

Project Overview

Meteora Agent is a Rust application specifically designed to monitor Solana transactions related to the Meteora DLMM program. It focuses on transactions involving Liquidity Provider (LP) wallet addresses defined in the configuration file and logs detailed information such as add liquidity and remove liquidity events.

Key features:

  • Monitors transactions for the Meteora DLMM program
  • Tracks activity for specific LP wallet addresses
  • Logs transaction details, particularly add and remove liquidity events
  • Uses the Carbon framework for blockchain transaction processing

Prerequisites

  • Rust and Cargo (recommended to install via rustup)
  • Access to a Solana RPC node URL

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd meteora-agent
  2. Build the project:

    cargo build --release

Configuration

Environment Variables

Create a .env file with the following content:

RPC_URL=<solana-rpc-url>

Replace <solana-rpc-url> with your Solana RPC node URL.

LP Wallet Configuration

Configure the LP wallet addresses to monitor in the config.json file:

{
  "lp_wallets": [
    "wallet-address-1",
    "wallet-address-2",
    "wallet-address-3",
    "wallet-address-4"
  ]
}

Running

Execute the following command to start the application:

cargo run --release

The application will begin monitoring transactions for the Meteora DLMM program and log detailed information when it detects transactions related to the configured LP wallets.

Log Output

When LP wallet transactions are detected, the application logs the following information:

  • Transaction signature
  • LP wallet addresses involved
  • Transaction type (e.g., AddLiquidityEvent or RemoveLiquidityEvent)
  • Transaction details, including:
    • LB pair (lb_pair)
    • Source address (from)
    • Position (position)
    • Amounts (amounts)
    • Active bin ID (active_bin_id)

Dependencies

This project uses the following main dependencies:

  • Carbon framework components (core, log-metrics, meteora-dlmm-decoder, rpc-transaction-crawler-datasource)
  • Solana SDK and client libraries
  • Tokio async runtime
  • Serde for JSON serialization/deserialization

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages