Basic · transaction costs · Self-guided
Transaction Cost Lab
Estimate the Solana network fee for legacy, v0, or v1 transactions. Then keep that fee separate from account-storage deposits, program-defined charges, and the SOL value transferred. This lab uses only values you enter; it does not connect to a wallet, RPC, or blockchain.
Follow the debit
Set the transaction inputs
Read the estimate
Interactive estimate loads with JavaScript. The examples below remain readable without it.
- Base network fee
- —
- Priority fee
- —
- Network fee · paid by
- —
— - Account-storage deposit
- —
- Program-defined charge
- —
- SOL transferred
- —
- Other successful transaction debits
- —
- Combined debit if one wallet funds every line
- —
The fee payer is charged the network fee. Other amounts may debit different accounts. Do not treat this combined total as a wallet quote.
Check the version-specific math
Legacy / v0: network fee = signatures × base fee + ceil(requested CU limit × micro-lamports per CU ÷ 1,000,000)
V1: network fee = signatures × base fee + absolute priority fee in lamports
With two signatures at 5,000 lamports each and a 200,000 CU limit priced at 250,000 micro-lamports per CU, legacy/v0 adds a 50,000-lamport priority fee: the network fee is 60,000 lamports (0.00006 SOL). A v1 message with two signatures and a 50,000-lamport total priority fee also has a 60,000-lamport network fee, independent of the v0 multiplication formula.
If instruction execution fails, state changes in the transaction roll back, but the network fee can still be charged. A submitted wallet prompt is not proof of success. Check the signature, transaction result, fee payer, and resulting account state before telling a learner what happened or retrying.