Skip to content

solanatracker/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Tracker Examples

Runnable code for every guide at solanatracker.io/resources.

All examples live in one repository: github.com/solanatracker/examples

Folder Example Tutorial
01-get-solana-token-price-api Get Solana token prices (REST) Tutorial
02-realtime-solana-price-websocket Stream live Solana prices (WebSocket) Tutorial
03-solana-wallet-portfolio-api Wallet portfolio and PnL v2 Tutorial
04-stream-pumpfun-launches-websocket Stream Pump.fun launches (WebSocket) Tutorial
05-detect-pumpfun-graduation Detect Pump.fun graduations Tutorial
06-reduce-solana-rpc-latency Reduce Solana RPC latency Tutorial
07-yellowstone-grpc-setup Yellowstone gRPC setup Tutorial
08-pumpfun-stream-new-minted-tokens Stream Pump.fun mints (gRPC) Tutorial
09-raydium-stream-and-parse-amm-transactions Parse Raydium AMM swaps (gRPC) Tutorial
10-meteora-dlmm-transaction-parsing Parse Meteora DLMM swaps (gRPC) Tutorial

Quick start

git clone https://github.com/solanatracker/examples.git
cd examples/01-get-solana-token-price-api
cp .env.example .env
npm install
npm start

Environment variables

Variable Used by Where to get it
ST_API_KEY REST Data API examples Data API dashboard
ST_DATASTREAM_KEY WebSocket Datastream examples Data API dashboard → Datastream section
YELLOWSTONE_GRPC_ENDPOINT gRPC examples Yellowstone gRPC dashboard
YELLOWSTONE_GRPC_TOKEN gRPC examples Same dashboard (x-token value)
WALLET_ADDRESS Wallet portfolio example Any Solana wallet pubkey
DEDICATED_RPC_URL RPC latency example Dedicated Nodes

Regenerate from site content

From the main Solana Tracker repo:

node scripts/sync-resource-examples.mjs
npm run validate:resources
npm run run:resources

About

Runnable Solana Tracker developer examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors