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.
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.