#solana #blockchain #hyperstack

hyperstack-stacks

Protocol stacks for Hyperstack - ready-to-use Solana data streams

24 releases

new 0.5.3 Feb 20, 2026
0.5.2 Feb 7, 2026
0.4.3 Feb 3, 2026
0.4.0 Jan 31, 2026
0.3.15 Jan 31, 2026

#907 in Web programming

MIT license

135KB
3.5K SLoC

hyperstack-stacks

crates.io docs.rs License

Protocol stacks for Hyperstack - ready-to-use Solana data streams.

Installation

[dependencies]
hyperstack-stacks = "0.2"

Or with specific features:

[dependencies]
hyperstack-stacks = { version = "0.2", default-features = false, features = ["pumpfun"] }

Features

Feature Default Description
pumpfun Yes PumpFun token streaming
full No Enables all stacks

Usage

use hyperstack_sdk::prelude::*;
use hyperstack_stacks::pumpfun::{PumpfunToken, PumpfunTokenEntity};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let hs = HyperStack::connect("wss://mainnet.hyperstack.xyz").await?;
    
    // List all tokens
    let tokens = hs.list::<PumpfunTokenEntity>().await;
    println!("Found {} tokens", tokens.len());
    
    // Watch for real-time updates
    let mut stream = hs.watch::<PumpfunTokenEntity>();
    while let Some(update) = stream.next().await {
        match update {
            Update::Upsert { key, data } => {
                println!("Token {}: {:?}", key, data.info.name);
            }
            Update::Delete { key } => {
                println!("Token {} removed", key);
            }
            _ => {}
        }
    }
    
    Ok(())
}

Available Stacks

PumpFun Token Stack

Real-time streaming data for PumpFun tokens on Solana.

use hyperstack_stacks::pumpfun::{PumpfunToken, PumpfunTokenEntity};

Entity: PumpfunToken

Field Type Description
id PumpfunTokenId Token identifiers (mint, bonding curve)
info PumpfunTokenInfo Token metadata (name, symbol, URI)
reserves PumpfunTokenReserves Current reserve state and pricing
trading PumpfunTokenTrading Trading statistics and metrics
events PumpfunTokenEvents Recent buy/sell/create events

Dependencies

This crate depends on hyperstack-sdk for the core streaming functionality.

License

MIT

Dependencies

~9–23MB
~197K SLoC