In this article, we explore the lifecycle of transactions on Solana, examine its fee market, and discuss the shortcomings of the transaction fee mechanism.
A transaction is the transmission of data across the blockchain. In blockchain networks, transaction fees are key to maintaining security, incentivizing validators to process transactions quickly, and preventing spam. Solana, a popular blockchain known for its high throughput and speed, features parallel execution and a local market mechanism that enables a transaction speed of 300 milliseconds.
Transactions on Solana are fast and complete almost instantly. An example of a transaction could be a swap on a DeFi protocol, minting an NFT, or a token transfer. Each successful transaction requires payment of a minimum fee. The transaction process on Solana is briefly described in these steps:
1. The user signs the transaction in their wallet or dApp and sends it to a Solana RPC server.
2. RPC servers verify the leader schedule and forward it to the current leader.
3. The leader validates and organizes signed transactions within its designated slot before execution.
4. Solana validators use a block-building algorithm called Prio-Graph, which prioritizes transactions based on priority fees and votes.
5. The connection between the RPC server and the leader node is established via QUIC to process transactions quickly and securely.
6. Transaction processing goes through multiple stages: signature verification, banking processing, and propagation.
7. Solana does not use a traditional mempool but rather Gulfstream, which allows ordering transactions locally in each thread's queue.
8. Transactions lock specific states for reading and writing; if they cannot obtain the necessary locks, they are re-queued.
9. Validators synchronize their states within Solana clusters to maintain a consistent ledger.
10. A block is considered complete when at least 31 verified blocks have been built on top of it.
For each signed transaction on Solana, whether for $1 or $100, a fixed fee of 0.000005 SOL is incurred. This static fee model contributes to a highly efficient and economical architecture, allowing thousands of users to transact at low cost. This differs from other blockchains, where network congestion or transaction complexity can significantly increase fees.
However, this base fee is not the only cost on Solana. There are also priority fees, which determine the order of transactions in the leader's queue. These fees are optional and depend on whether the user wants faster processing.
Compute units (CU) on Solana measure the computational resources needed to execute a transaction. Each transaction on Solana deducts compute units from its budget:
- Maximum limit: 1.4 million compute units per transaction.
- Default limit: 200,000 compute units per instruction.
- Custom limit: A specific limit can be requested via the SetComputeUnitLimit instruction.
Transaction fees on Solana are based on the compute units used. This means that transactions using more computational resources incur higher fees. However, sometimes voting transactions can be overloaded compared to their actual usage, leading to inefficiencies and centralization risks.
Solana's fee system consists of two types: base fees and priority fees.
The base transaction fee on Solana is 0.0000005 SOL, regardless of the transaction type. Half of these fees are burned to reduce the SOL supply, while the other half is awarded to the validator that processed the transaction.
On the other hand, the priority fee is an optional additional cost that users can pay to increase the likelihood that their transaction is processed faster. However, block inclusion is not guaranteed due to factors such as block space limits and fee competition.
Regarding fee calculation on Solana, the base fee per transaction is 0.000005 SOL. Users can add priority fees to improve their chances of block inclusion, which are calculated based on the number of compute units used and the price the user is willing to pay.
Although Solana has significant advantages in terms of cost and transaction speed, its fee mechanism presents some challenges. For example, efficient use of compute units is not always incentivized, and voting fees can create centralization effects.
At Q2BSTUDIO, we offer development solutions and specialized blockchain technology services, including transaction optimization on networks like Solana. Our focus is to help businesses leverage blockchain technology efficiently and at reduced costs, providing consulting, smart contract development, and custom DeFi solutions. If you are looking to improve your operations on Solana, our expert team is ready to help you achieve your technological goals.





