The Solana Network Fee Stream provides a continuous gRPC feed of real-time priority fee and tip data based on recent historical block observations on the Solana network. Instead of estimating fees from stale snapshots or hardcoding static values, your application receives pushed updates reflecting live fee market conditions — giving you the data you need to set aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/BlockRazorinc/docs_en/llms.txt
Use this file to discover all available pages before exploring further.
ComputeBudget priority fee and Jito tip that maximize your transaction’s chances of landing in the next slot. The service uses the GetTransactionFee method and is priced at $300 per month.
Priority fees on Solana are set via the
SetComputeUnitPrice instruction in the ComputeBudget program. Tips for Jito bundles are transferred to one of Jito’s tip accounts. The fee stream provides both values so you can configure each independently based on current network conditions.Connection Details
| Property | Value |
|---|---|
| Protocol | gRPC |
| gRPC host | grpc.blockrazor.io:443 |
| Method | GetTransactionFee |
| Pricing | $300 / month |
| Chain | Solana |
Attach your BlockRazor auth token as a Bearer token in the
authorization metadata header on your gRPC outgoing context. Token-based authentication is required for all connections.Authentication
Set up your gRPC metadata before opening the stream:Code Example
The example below uses thetonic gRPC client in Rust to connect to the fee stream and print priority fee recommendations as they arrive:
Response Fields
Each message received fromGetTransactionFee is a FeeResponse with the following fields:
Recommended compute unit price to set via the
SetComputeUnitPrice instruction, expressed in micro-lamports per compute unit (μL/CU). Add this to your transaction using the ComputeBudget program to increase priority relative to other transactions in the same slot.Example: 5000 micro-lamports/CU means paying 0.005 lamports per compute unit consumed.Recommended Jito tip amount in lamports to transfer to one of Jito’s eight tip accounts alongside your transaction. This tip is used by Jito block engines to prioritize your bundle for inclusion. Higher tips increase the likelihood of landing in the next slot during periods of contention.Example:
100000 lamports = 0.0001 SOL tip.Unix timestamp (seconds) as a signed 64-bit integer representing when this fee observation was recorded. Use this to detect stale data — if the timestamp is more than a few seconds behind wall clock time, reconnect to ensure freshness.
Applying Fee Data to Transactions
Use the streamed values to configure two separate instructions in your Solana transaction:1. Set Compute Unit Price (Priority Fee)
2. Add Jito Tip Transfer
You do not need to use both
priorityFee and recommendedTip in every transaction. Use priorityFee for standard priority lane inclusion and recommendedTip when submitting via Jito bundles. Combining both maximizes inclusion probability on heavily contested slots.Example Stream Output
Pricing & Discounts
| Subscription Period | Price | Discount |
|---|---|---|
| 1 month | $300/month | — |
| 3 months | $300/month | 5% off |
| 6 months | $300/month | 10% off |
| 9 months | $300/month | 15% off |
| 12 months | $300/month | 20% off |