isTransactionMessageWithinSizeLimit
Checks if a transaction message is within the size limit when compiled into a transaction.
Type Parameters
| Type Parameter | Description |
|---|---|
TTransactionMessage extends Readonly<{ instructions: readonly Instruction<string, readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[]>[]; version: TransactionVersion; }> & TransactionMessageWithFeePayer<string> | The type of the given transaction message. |
Parameters
| Parameter | Type |
|---|---|
transactionMessage | TTransactionMessage |
Returns
transactionMessage is TransactionMessageWithinSizeLimit & TTransactionMessage