Package Logo
jito_network_substreams
jito_network_substreams@v0.3.0
Total Downloads
10
Published
15 hours ago
Network
solana solana
Publisher
User Avatar PaulieB14
Total Downloads
10
Published
15 hours ago
Network
solana solana
Publisher
User Avatar PaulieB14

Readme

Jito Network Substreams

A comprehensive Substreams package for tracking and analyzing Jito Network activities on Solana, including MEV operations, staking events, and token transfers.

Features

  • Real-time Jito Transaction Tracking: Monitor all Jito-related transactions
  • Account Owner Resolution: Uses Foundational Stores for instant account ownership lookup
  • MEV Bundle Analysis: Track MEV operations and fee distribution
  • Staking Event Monitoring: Monitor JitoSOL staking and unstaking activities
  • Cost-Efficient: Leverages preprocessed data to minimize RPC calls

Key Contracts Tracked

  • JitoSOL Token: J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn
  • Jito Stake Pool: Jito4APyf642JPZPx3hGc6WWJ8zPKtRbRs4P815Awbb
  • JTO Token: jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL

Installation

  1. Install Prerequisites:

    # Install Rust
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    
    # Install Substreams CLI
    cargo install substreams
    
  2. Build the Project:

    substreams build
    

Usage

Run Locally

# Test with a small block range
substreams run map_jito_transactions \
  --substreams-endpoint https://mainnet.sol.streamingfast.io:443 \
  --start-block 31310775 \
  --stop-block +10

With Authentication

# Get JWT token from The Graph
substreams auth

# Run with authentication
substreams run map_jito_transactions \
  --substreams-endpoint https://mainnet.sol.streamingfast.io:443 \
  --substreams-token YOUR_JWT_TOKEN_HERE \
  --start-block 31310775 \
  --stop-block +100

Deploy to The Graph Network

# Package the substreams
substreams pack

# Deploy to The Graph Network
substreams deploy

Data Output

The substreams output includes:

  • Transaction Details: Program ID, instruction type, accounts, data
  • Account Ownership: Resolved account owners using Foundational Stores
  • Timing Information: Slot number and timestamp
  • Transaction Signatures: For tracking and verification

Example Output

{
  "transactions": [
    {
      "program_id": "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn",
      "instruction_type": "jitosol_transfer",
      "accounts": ["...", "..."],
      "data": "...",
      "slot": 123456789,
      "signature": "...",
      "account_owners": [
        {
          "account_address": "...",
          "mint_address": "...",
          "owner": "..."
        }
      ],
      "timestamp": 1703123456
    }
  ]
}

Benefits

  • Cost Savings: No expensive RPC calls for account ownership
  • Real-time Processing: Low-latency data processing
  • Fork-aware: Handles chain reorganizations automatically
  • Scalable: Built on The Graph's infrastructure
  • Composable: Can be used with other Substreams packages

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test locally
  5. Submit a pull request

License

MIT License

Documentation

Modules

Maps icon
Maps

map
map_jito_transactions

4f296f16913d342bf3617aecfde6249d9ae7ed49
map map_jito_transactions (
blocksf.solana.type.v1.Block
)  -> jito.v1.JitoResult

Real-time Jito Network transaction tracking with MEV bundle analysis and staking event monitoring. Processes all Jito Foundation program interactions on Solana.

substreams gui jito-network-substreams@v0.3.0 map_jito_transactions
Protobuf

Protobuf Docs Explorer

jito.v1