v1 is strictly opt-in. Integrations that do not set
transactionVersion continue to receive v0
transactions.v0 vs v1
v1 increases the transaction size limit from 1232 to 4096 bytes. It removes address lookup tables in favor of inline account addresses and rejects duplicate addresses. Compute budget configuration moves from ComputeBudget instructions intotransactionConfig.
Conditionally Serving v1 Transactions
Some wallets don’t support v1 transactions yet. Check whether the user’s wallet supports v1. Requestv1 if it does and v0 if it doesn’t.
A wallet connected through @solana/wallet-adapter reports the transaction versions it supports in adapter.supportedTransactionVersions. If that property is missing, the wallet supports legacy transactions only.
Parameter Changes
GET /order
SettransactionVersion to v1 on GET /order.
GET /quote
SettransactionVersion to v1 on GET /quote. This endpoint does not return a transaction; the parameter controls the size limit the route is simulated against, and should match the transactionVersion passed to POST /swap.
POST /swap
transactionVersion works the same way as on GET /order, described above.
POST /swap-instructions
Under v1,computeBudgetInstructions in the response comes back empty. Build the compute budget into transactionConfig yourself from computeUnitLimit, loadedAccountsDataSizeLimit, and prioritizationFeeLamports instead.
Deserializing Transactions
Classic@solana/web3.js can read v1 transactions from 1.99.0, but can’t build, sign, or send them. Signing and sending a v1 transaction requires @solana/kit 8.0.0+ (or @solana/web3.js@rc, the emerging v3). See the Send Orders recipe for a v1 example.
Reading Transactions
Reading transactions back also changed: passmaxSupportedTransactionVersion: 1 to getTransaction or getBlock to include v1 transactions. See the “For Transaction Readers” section of Solana’s docs.