assertIsTransactionWithinSizeLimit
Asserts that a given transaction is within the size limit.
Throws a SolanaError of code SOLANA_ERROR__TRANSACTION__EXCEEDS_SIZE_LIMIT if the transaction exceeds the size limit.
Type Parameters
| Type Parameter | Description |
|---|---|
TTransaction extends Readonly<{ messageBytes: TransactionMessageBytes; signatures: SignaturesMap; }> | The type of the given transaction. |
Parameters
| Parameter | Type |
|---|---|
transaction | TTransaction |
Returns
asserts transaction is TransactionWithinSizeLimit & TTransaction