Skip to main content
Solana v0 transaction resolving compact address indexes through an Address Lookup Table

Solana v0 Transactions and ALTs: 7-Check Guide

BUILDERZ

BUILDERZ

Share

In this guide

The decisions and working steps ahead.

Checks 1 and 2: prove the size need and ALT fit

Check 1: prove that message size is the constraint

Check 2: understand what an ALT changes

On this page

A Solana transaction can have valid instructions and still fail before
execution because its serialized message is too large. Versioned v0 messages
and Address Lookup Tables reduce the bytes spent repeating account addresses,
but they add onchain state, authority, compatibility, and indexing concerns.

This guide gives you seven production checks for deciding, constructing, and operating v0 transactions with ALTs. It also covers when the larger v1 format can carry the same accounts inline.

Read Solana transactions explained first
if message compilation, account keys, and atomic execution are unfamiliar.

Checks 1 and 2: prove the size need and ALT fit

Check 1: prove that message size is the constraint

Legacy and v0 transactions share a 1,232-byte limit for the complete signed transaction. Use v0 when a transaction needs many accounts and approaches that limit. If the legacy message fits, it remains simpler and has broader tooling support.

Serialize the exact signed transaction shape in tests. Count instructions,
signatures, static keys, instruction data, and ALT lookup metadata. Do not infer
size from the number of program instructions alone.

An ALT only compresses eligible account addresses in the message. It does not:

  • reduce program compute
  • remove writable-account contention
  • make instruction data smaller
  • turn multiple state transitions into one valid invariant
  • guarantee wallet or indexer support

For compute, use the
Solana compute-unit guide. For
hot writable state, use the
account-locking guide.

Check 2: understand what an ALT changes

A v0 message can reference an ALT account and identify stored public keys by 1-byte index instead of including each 32-byte key inline. Current documentation states a 31-byte saving per ALT-resolved account before accounting for the table address and lookup metadata. A table can store up to 256 public keys.

Before execution, the validator resolves the indexes back to full public keys.
Those loaded accounts still have read-only or writable privileges and still
participate in account locking.

ALT-loaded accounts cannot be transaction signers. Fee payers, required
signatures, invoked program IDs, and other keys selected by the compiler remain
in the static message key set. If the oversized portion is mostly signatures or
instruction data, an ALT may not solve it.

Check 3: control the table lifecycle

Treat an ALT as production infrastructure, not an incidental client cache. Track:

  • table address and target cluster
  • authority and payer
  • creation slot
  • ordered address list and expected index
  • applications and transaction families that depend on it
  • extension, freeze, deactivation, and closure policy

Extending a table requires onchain transactions. The official guide notes that
large address sets need multiple extension transactions because each extension
must fit the transaction size limit.

Never discover table contents by trusting a local array. Fetch the account from
the target cluster and verify its authority, state, length, and ordered addresses
against your deployment manifest.

Check 4: compile and sign the v0 message correctly

The instructions themselves do not need an ALT-specific form. The client
provides fetched lookup-table accounts while compiling the v0 message:

Code examplets
import {
  type AddressLookupTableAccount,
  type PublicKey,
  type TransactionInstruction,
  TransactionMessage,
  VersionedTransaction,
} from '@solana/web3.js';

export function buildV0Transaction(input: {
  payer: PublicKey;
  blockhash: string;
  instructions: TransactionInstruction[];
  lookupTables: AddressLookupTableAccount[];
}) {
  const message = new TransactionMessage({
    payerKey: input.payer,
    recentBlockhash: input.blockhash,
    instructions: input.instructions,
  }).compileToV0Message(input.lookupTables);

  return new VersionedTransaction(message);
}

Sign the VersionedTransaction before sending. Verify that every expected signer
is present and that no required signer was incorrectly moved into an ALT.

After compilation, inspect static account keys and address-table lookups. A
successful TypeScript compile is not proof that the message references the table
or indexes you intended.

Check 5: simulate the final compiled transaction

Simulate the same message shape you plan to sign and send. Preserve:

  • simulation context slot
  • transaction error and logs
  • loaded writable and read-only addresses
  • inner instructions
  • units consumed
  • serialized transaction length

A missing or stale ALT can fail before the business instruction produces useful
logs. A correct lookup can still load a wrong account when the table manifest and
compiler inputs drift.

The five-layer transaction debugger helps
to map an instruction error through its CPI stack and account state.

Check 6: make RPC and indexer compatibility explicit

RPC consumers that fetch blocks or transactions should declare the maximum transaction version they support. A v0 raw JSON message exposes addressTableLookups; resolved keys can appear in transaction metadata or parsed account entries, depending on the requested encoding. V1 transactions contain inline account addresses.

Test every boundary that decodes or displays the transaction:

  1. wallet signing
  2. backend serialization
  3. simulation endpoint
  4. submission endpoint
  5. confirmation and transaction fetch
  6. indexer, webhook, and explorer
  7. support and incident tooling

Record the version, ALT addresses, loaded keys, RPC host, and signature in your operation trace. When failures differ across RPC nodes or transaction metadata is missing, investigate the delivery and observation layer. RPC routing cannot correct a malformed message or wrong table index.

Check 7: choose between v0 and v1

The Solana Foundation recorded mainnet activation of transaction v1 on September 15, 2026, at epoch 1035. V1 accepts up to 4,096 bytes and carries its addresses inline. Legacy and v0 keep their 1,232-byte limit. Only v0 supports Address Lookup Tables.

Check which transaction versions the connected wallet can sign. A v1 sender needs a compatible serializer and explicit compute and loaded-data limits. A reader using getTransaction or getBlock needs a v1-capable decoder before it declares support for version 1.

Use the same instructions to compare the two paths:

  • keep transaction-format selection behind a typed capability boundary
  • measure signed legacy, v0 and v1 sizes in fixtures
  • avoid coupling business instructions to ALT administration
  • record decoder support per wallet, RPC, and indexer
  • check wallet signing, base64 submission, RPC readback and indexing end to end
  • retain a supported fallback for transactions that fit older formats

Use base64 for a v1 transaction above 1,232 bytes. A base58 submission still has the smaller limit.

The v0 and ALT Production Gate

Before enabling a versioned transaction path:

  1. prove the legacy transaction exceeds or approaches the current size limit
  2. identify which non-signer keys will be compressed by the ALT
  3. verify the table address, authority, cluster, and ordered contents onchain
  4. compile the final v0 message and inspect static keys plus lookup indexes
  5. sign and simulate the exact message shape used for submission
  6. test wallet, RPC, confirmation, indexer, explorer, and support compatibility
  7. preserve version, table, loaded-key, size, and signature evidence
  8. document extension, freeze, deactivation, and closure ownership
  9. keep compute and account-contention reviews separate
  10. gate v1 behind verified cluster and toolchain support

The result should be a repeatable transaction fixture and a table manifest, not
an undocumented address pasted into frontend code.

FAQ, sources, and next step

Do ALTs reduce transaction compute?

Their main purpose is on-wire address compression. Loaded accounts and program
work still exist at execution time. Measure compute separately.

Can an ALT contain signer accounts?

The table can store public keys, but ALT-resolved accounts in a v0 message cannot
be transaction signers. Required signer keys must remain static.

Should every application use v0?

No. Legacy transactions are simpler when the complete message fits and all
required tooling supports them. Use v0 for a measured account-address size need.

Is v1 active on mainnet now?

Yes. Mainnet activated v1 in September 2026. Individual wallets and SDK versions can still differ in the formats they support.

Primary sources

For submission, expiration, and safe retry behavior, continue with the
transaction reliability guide.
For a large transaction that crosses message design, wallet compatibility, and
RPC delivery, try a Builderz architecture review.

Continue reading

Building on Solana?

Book a 20-minute intro call, or send a short brief. We reply within one business day.

Solana development service