setTransactionMessageLoadedAccountsDataSizeLimit
Sets the loaded accounts data size limit for a transaction message.
This function works with all transaction versions:
- V1: Sets the
loadedAccountsDataSizeLimitfield in the transaction message's config. - Legacy / V0: Appends (or replaces) a
SetLoadedAccountsDataSizeLimitinstruction from the Compute Budget program.
Type Parameters
| Type Parameter | Description |
|---|---|
TTransactionMessage extends TransactionMessage | The transaction message type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
loadedAccountsDataSizeLimit | number | undefined | The maximum size in bytes for loaded account data, or undefined to remove the limit. |
transactionMessage | TTransactionMessage | The transaction message to configure. |
Returns
TTransactionMessage
A new transaction message with the loaded accounts data size limit set.