Skip to main content
Skip to content
DN Research

For Solana legacy and v0 transactions, the compute limit changes the fee

For Solana legacy/v0 transactions, compare requested compute limits, priority fees and adequate work budgets while excluding the distinct v1 fee format.

Identical small compute engines sit inside reserved chambers of different sizes. Editorial illustration.
Reading options: audio, text size & sections

Research scope: Documentary analysis with a hypothetical worked example. Sources reviewed 5 December 2026; this is a planning and interpretation guide, not a report of 2027 observations.

The transaction version comes first

For Solana legacy and v0 transactions using compute-unit pricing, the requested compute limit can change the priority fee even when the application performs the same work. The fee uses the requested limit, not a rebate calculation based on the compute units eventually consumed. An unnecessarily high limit can therefore increase the amount paid. [1][2]

This scope is essential. Current Solana documentation describes a v1 transaction format that sets the priority fee directly as a total in the message configuration. Its computation is different. The price-times-limit worksheet here applies to the documented legacy/v0 mechanism and must not be pasted onto a v1 transaction. [1][2]

The article compares explicit synthetic limits for one fictional workload. It does not measure a program, quote current priority prices or claim that any chosen fee guarantees inclusion.

Price, limit and consumption are three fields

The compute-unit price is stated in micro-lamports per CU. The limit is the maximum computation the transaction requests under the relevant mechanism. Consumption is the work actually metered during execution. Keeping them separate prevents a common error: multiplying the quoted price by an observed consumption number when reconstructing a limit-based charge.

Solana's fee-structure documentation gives the prioritization fee as the ceiling of price multiplied by limit, divided by 1,000,000. The denominator converts micro-lamports to lamports. The upward rounding matters when the product is not a whole number of lamports. [1]

The base fee is separate. The documentation currently describes 5,000 lamports per chargeable signature, including relevant precompile signature counts. Our simplified example assumes one chargeable signature and no additional signature-verification charges. It therefore uses a base fee of 5,000 lamports, not a universal per-transaction total. [1]

The same assumed work, four limits

Assume a fictional workload needs 120,000 CUs under the conditions being modeled. Set a synthetic price of 10,000 micro-lamports per CU and compare requested limits. These are planning assumptions; no simulation or transaction was run.

Requested limit, CU Modeled work requirement, CU Headroom or shortfall, CU Quoted priority fee, lamports Base plus priority quote, lamports
100,000 120,000 20,000 short 1,000 6,000
150,000 120,000 30,000 headroom 1,500 6,500
300,000 120,000 180,000 headroom 3,000 8,000
600,000 120,000 480,000 headroom 6,000 11,000

At the chosen price, raising the limit from 150,000 to 600,000 increases the priority quote by 4,500 lamports. The assumed useful workload has not changed. The larger limit buys a larger budget boundary; it does not prove that the program will consume the extra computation.

The first row is deliberately insufficient for the assumed requirement. It is not a successful cheap alternative. Its quoted fee calculation and its inability to accommodate the modeled work are separate outputs. The table does not claim the transaction actually consumed 120,000 CUs despite a 100,000-CU cap, or that a particular failed attempt produced a receipt.

Under-requesting has its own failure cost

A budget below the work needed cannot complete that work under the assumed conditions. Choosing a low limit merely to minimize a displayed fee therefore changes the success question. A useful comparison needs both an adequate execution budget and a tolerable fee, rather than minimizing one number in isolation.

Solana's compute-budget documentation describes the applicable limit instructions and constraints. It also distinguishes defaults from explicit limits and notes that transaction format affects how configuration is supplied. [2]

A collector should preserve the actual encoded transaction's version and budget settings. An interface label or a user's intended limit is not proof of what the transaction contained. Similarly, a default calculated from instruction types should not be assumed to equal the program's eventual consumption.

Simulation informs the limit but does not freeze the future

Solana's official optimization cookbook demonstrates simulating a transaction, reading unitsConsumed and adding a margin when choosing a limit. That is a practical way to replace an uninformed maximum with workload evidence. [3]

The example's margin is not a universal guarantee. The state, instruction path, accounts and program behavior can differ between simulation and execution. If a transaction's work changes with state, one successful simulation may not cover the relevant range. Preserve what was simulated and why the selected margin is appropriate for that workflow.

A sensible comparison also checks whether the simulation itself failed. Replacing an error with a convenient default can be a deliberate fallback policy, but it should not be described as measured consumption. The evidence category matters when an operator later asks why an apparently optimized transaction ran out of computation.

A higher limit is not a simple speed purchase

The fee documentation describes scheduling using a reward-and-cost calculation, with factors beyond just a nominal per-CU price. A higher requested limit can change both the fee and the scheduler's view of cost. It should not be marketed as a proportional guarantee of speed. [1][2]

For a time-sensitive workflow, inspect the intended action, the relevant fee estimate and the actual completion evidence. A transaction accepted by an RPC endpoint has not necessarily delivered the business outcome. The worksheet supplies a fee arithmetic check, not a prediction of scheduling, confirmation or trading execution.

This also explains why comparing two wallets by their displayed priority-price field alone is incomplete. Different limits can turn the same price into different total fees. Conversely, different prices can produce the same total when their requested limits differ. Match version, workload and full fee components before drawing a cost conclusion.

Keep storage funding outside this subtotal

DN's existing Solana account-rent article explains recoverable storage balances and account-closure conditions. Those amounts are economically different from the execution fee modeled here. Creating or maintaining an account can require funding beyond the base-plus-priority subtotal without making all that funding a permanent network expense.

The CSV deliberately contains only the stated compute-limit comparison. It does not include account creation, exchange service fees, a swap's own charges or token price impact. A complete user workflow may need those additional entries, with clear units and no double counting.

Sources were reviewed on 5 December 2026. The version boundary is part of the result: the legacy/v0 limit-based formula must be checked against the actual encoded format. Within that scope, the practical decision is to choose an evidence-based compute budget, preserve the margin rationale and reconcile the resulting fee instead of assuming unused requested CUs are free.

Use the worked example

Original DN synthetic worked example. All scenario inputs are hypothetical; no live transaction, return, quote or account is represented. For Solana legacy/v0 transactions, compare requested compute limits, priority fees and adequate work budgets while excluding the distinct v1 fee format.

To check the arithmetic and CSV/JSON agreement locally, save both files beside the Python verification script and run python3 verify.py q38.json. Python 3 is required; no third-party packages are needed. The check does not verify source claims or provider performance.

These are downloadable research records. They do not connect to an account, execute a trade or provide live market data.

Frequently asked questions

Does this fee formula apply to Solana v1 transactions?

No. The cited documentation describes v1 priority fees as a direct total in message configuration. This worksheet is explicitly for legacy/v0 price-times-limit behavior.

Do unused requested compute units reduce the priority fee afterward?

Under the modeled legacy/v0 mechanism, the fee is based on the requested limit rather than actual consumption. Do not assume a consumption-based refund.

Is a simulation plus 10% always enough?

No. The official example demonstrates a margin, not a universal guarantee. A workflow needs evidence for possible changes between simulation and execution.

Continue the research

Optional research services and tools

The free example above can be used without buying a product. For a defined team question, the DN Research Desk offers separately agreed documentary briefs, source registers and worked examples. Scope, fee, delivery date and usage terms are agreed before work begins; an enquiry creates no payment obligation.

Commercial disclosure: DN’s own service and any referral relationship are separate from the research method. No provider paid for a favourable finding in this article.

Sources and review scope

Sources reviewed on 5 December 2026. Review dates are distinct from each source’s observation, publication and effective dates.

  1. Solana fee structure. Legacy/v0 priority fee uses ceiling(price times limit / 1e6); base-signature charges; v1 uses direct total fee. Evidence: Official documentation.
  2. Solana compute budget. Requested CUs determine legacy/v0 priority fees; limits, instructions, format differences and scheduling costs. Evidence: Official documentation.
  3. Solana cookbook: Optimize compute requested. Simulation exposes unitsConsumed and the example adds a margin before requesting a limit. Evidence: Official documentation.

Corrections and limitations

To flag a possible error, use the DN contact route with this article’s URL, the disputed claim and the supporting source. The analysis is educational, not personalised investment, legal or tax advice. Documentation and synthetic examples do not establish realised returns or individual eligibility.

The DN briefing: what changed and why it matters

Follow documented changes in AI, crypto and financial technology, with practical analysis and source context. Unsubscribe anytime.