Skip to content

fjchen7/raydium-balance-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raydium Balancer Fetcher

This project is a simple implementation to get SOL/WSOL balance and SOL LP position in SOL-USDC.1bp liquidity pool in Raydium mainnet.

Note:

  • Only work for Solana mainnet as all program Ids are hardcoded in the code.
  • Just for learning purpose, not for production use.

How to Run

Before running the project, you need Rust installed. Following the instructions on the Rust official website.

Get the wallet address in Solana mainnet, and execute the following command:

cargo run 53zSj4G935ZY2a5x2UnGAiJXSuXXmGHaLph2zhAUvYpg

The output will be like:

SOL Balance/Position Summary for address: 53zSj4G935ZY2a5x2UnGAiJXSuXXmGHaLph2zhAUvYpg
- SOL: 0.013955593
- WSOL: 0
- SOL Unified (SOL + WSOL): 0.013955593
- SOL in SOL-USDC.1bp LP Position: 178.603037773

About

A demo to get Solana SOL/WSOL balance and SOL LP position in Raydium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages