Goal: Construct efficient transactions that land reliably.
Cover: v0 tx format, Address Lookup Tables, compute units, priority fees, local fee markets.
Activity: Build a TS client that simulates, sets CU budget, and uses an ALT.
Takeaway: “I can pack/price txs for throughput and reliability.”
You’ll learn versioned transactions (v0) and Address Lookup Tables (ALTs) to fit more accounts; how to set compute budgets and priority fees with the Compute Budget program; and why Solana uses local fee markets so unrelated traffic doesn’t spike your costs. Then you’ll build a small TypeScript client that simulates, sets CU limit/price, and uses an ALT.
Versioned tx (v0) + ALTs
Compute units (CU) + priority fees
setComputeUnitLimit and setComputeUnitPrice. Default price is 0 unless you set it.setComputeUnitLimit after simulating.Local fee markets (why your fee isn’t global)
Where to get a live fee hint
getRecentPrioritizationFees to fetch recent tips (optionally scoped to the accounts you will lock).