Every Solana transaction requires a fee paid in SOL. The fee has two components: a base fee and an optional prioritization fee. The base fee compensates validators for the cryptographic work of verifying signatures. The prioritization fee increases the likelihood that the current leader schedules your transaction ahead of competing ones.
Fee Structure
Base fee calculation, fee distribution, prioritization fee formula, and code examples for setting fees.
Compute Budget
Compute unit limits, ComputeBudgetInstruction variants, scheduler cost model, block limits, and execution budget constants.
Key facts
- Base fee: per-signature, split 50% burned / 50% to the validator.
- Prioritization fee:
ceil(compute_unit_price * compute_unit_limit / 1,000,000)lamports. 100% to the validator.
Limits
| Limit | Value | Source |
|---|---|---|
| Base fee per signature | 5,000 lamports | lamports_per_signature |
| Default CU limit / instruction | 200,000 | DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMIT |
| Builtin instruction default CU | 3,000 | MAX_BUILTIN_ALLOCATION_COMPUTE_UNIT_LIMIT |
| Max CU limit / transaction | 1,400,000 | MAX_COMPUTE_UNIT_LIMIT |
| Micro-lamports per lamport | 1,000,000 | MICRO_LAMPORTS_PER_LAMPORT |
Is this page helpful?