Skip to content

stafiprotocol/solana-lst-data-provider

Repository files navigation

Solana LST Data Provider

A TypeScript-based data provider for fetching and managing stake pool information from various Solana liquid staking protocols including Marinade, Jito, Blaze, MarginFi, and JPool.

Features

  • Fetches APY and TVL data from multiple liquid staking protocols
  • Implements caching mechanism to reduce API calls
  • Includes retry mechanism for improved reliability
  • TypeScript support for better development experience

Installation

Using pnpm:

pnpm install

Using yarn:

yarn install

Build

Using pnpm:

pnpm run build

Using yarn:

yarn build

Development

Using pnpm:

pnpm run dev

Using yarn:

yarn dev

Usage

Using pnpm:

pnpm run start

Using yarn:

yarn start

API Endpoints

The server runs on port 6666 by default and provides the following endpoints:

  • GET /health - Health check endpoint
  • GET /api/stake-pool-info - Get information about all stake pools including APY, TVL, and other metrics
  • GET /api/stake-pool-list - Get a list of supported stake pools

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published