Solana Fee Calculator
All tools

Simulate a transaction

Find the compute-unit limit your transaction really needs before you pay for it. The simulation runs without signatures and is never sent to the network.

Serialized transaction (base64)not signed, not sent

Runs simulateTransaction with signature checks off and a fresh blockhash. The transaction is never broadcast. Get the base64 with tx.serialize({ requireAllSignatures: false }).toString("base64") in web3.js.

FAQ

Is it safe to paste a transaction here?

A serialized transaction contains no private key. The simulation runs with signature verification off and replaces the blockhash, so it cannot be broadcast. Never paste a private key or seed phrase anywhere.

Why add 20 % to the units consumed?

The same transaction can use more units with other inputs or a changed account state — a swap route, an extra account to create. A margin avoids the 'exceeded CUs meter' failure, which still costs the fee.

The simulation failed. What now?

Read the last program log lines: they name the instruction and error. A failure here costs nothing.