LEGACY_TRANSACTION_SIZE_LIMIT

const LEGACY_TRANSACTION_SIZE_LIMIT: 1232 = 1232;

The maximum size of a legacy (and v0) transaction in bytes.

Example

import { LEGACY_TRANSACTION_SIZE_LIMIT } from '@solana/transactions';
 
const remainingBytes = LEGACY_TRANSACTION_SIZE_LIMIT - getTransactionSize(transaction);

See

On this page