V1_TRANSACTION_SIZE_LIMIT

const V1_TRANSACTION_SIZE_LIMIT: 4096 = 4096;

The maximum size of a version 1 transaction in bytes.

Example

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

See

On this page