Practical overview
When it fits
Use it when you want a Rust starting point for inspecting Solana block or transaction details in a console, and select the documented gossip, RPC-polling or WebSocket path according to your data source.
Who it is for
- Developers building or exploring command-line monitoring for Solana block and transaction data.
- Rust users who want examples of Solana gossip, RPC polling or WebSocket block subscriptions.
Documented uses
- Poll a specified slot range through Solana RPC and fetch block transaction details.
- Pull transactions from the Solana gossip cluster.
- Subscribe to incoming blocks with the WebSocket example.
- Print transaction signatures, recent blockhashes and instructions.
Requirements & limits
The repository is public and MIT-licensed. The README requires Rust 1.50.0 or later.
- The RPC polling example connects to Solana devnet and polls a specified slot range.
- The WebSocket block-subscription example requires the Solana node flag
--rpc-pubsub-enable-block-subscription. - The project lists Solana client, SDK, transaction-status, gossip and streamer dependencies, plus Tokio.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Build and start the documented listener
Build the Rust project and start its block listener using the README's commands.
Before you start
- Rust 1.50.0 or later
- A shell environment for the documented Git and Cargo commands
Steps
Clone the repository with the command below.
git clone git@github.com:JoshuaSum/solana-txn.gitChange into the project directory as directed by the README.
Build with the command below.
cargo build --releaseStart the listener with the command below.
cargo run --release
Expected outcome
The README describes a listener that fetches block details and prints transaction information to the console.
Guide limitations
- The README's clone command and directory name differ: it clones
solana-txnbut directs the reader to entersolana-block-listener. - The documented RPC polling example connects to Solana devnet.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 October 2026
- Original website title
- JoshuaSum/solana-txn · Official homepage title · retained in its source language

