Skip to content

Astralane/pals-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paladin Validator Tracker 🛡️⚔️

A tiny server that helps you retrieve all palidators and their upcoming leader slots.

Getting Started 🏁

use the sample .env file as a reference, you will require a good rpc for this.

# Clone the repository
git clone https://github.com/your-username/paladin-server.git
cd paladin-server

# Build with Rust nightly (requires Rust installed)
cargo build --release

Endpoints

🛡️ GET /api/palidators

Fetch all palidator public keys for current epoch

{
  "fish..adsf": [
    329623876,
    329623874
  ],
  "frs....dfad": [
    329623874
  ]
}

⚔️ GET /api/next_palidator

Get next leader palidator

{
  "pubkey": "Csd...def",
  "leader_slot": 42424242,
  "context_slot": 42424242
}

⚔️ GET /api/next_palidator/{slot}

Get next leader palidator on or after given slot

{
  "pubkey": "Csd...def",
  "leader_slot": 42424242,
  "context_slot": 42424242
}

About

A tiny server that helps you retrieve all palidators and their upcoming leader slots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages