getTransactionMessageLoadedAccountsDataSizeLimit
Returns the loaded accounts data size limit currently set on a transaction message, or
undefined if none is set.
This function works with all transaction versions:
- V1: Reads from the transaction message's
config.loadedAccountsDataSizeLimit. - Legacy / V0: Searches the instructions for a
SetLoadedAccountsDataSizeLimitinstruction and decodes its value.
Parameters
| Parameter | Type | Description |
|---|---|---|
transactionMessage | TransactionMessage | The transaction message to inspect. |
Returns
number | undefined
The loaded accounts data size limit in bytes, or undefined if none is set.