getTransactionMessageSizeLimit

function getTransactionMessageSizeLimit(transactionMessage): number;

Returns the maximum allowed compiled size in bytes for a given transaction message.

This depends on the version of the transaction message.

Parameters

ParameterType
transactionMessageTransactionMessage & TransactionMessageWithFeePayer<string>

Returns

number

Example

const sizeLimit = getTransactionMessageSizeLimit(transactionMessage);

On this page