setTransactionMessageHeapSize
Sets the heap frame size for a transaction message.
This function works with all transaction versions:
- V1: Sets the
heapSizefield in the transaction message's config. - Legacy / V0: Appends (or replaces) a
RequestHeapFrameinstruction from the Compute Budget program.
Type Parameters
| Type Parameter | Description |
|---|---|
TTransactionMessage extends TransactionMessage | The transaction message type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
heapSize | number | undefined | The requested heap frame size in bytes, or undefined to remove the setting. |
transactionMessage | TTransactionMessage | The transaction message to configure. |
Returns
TTransactionMessage
A new transaction message with the heap size set.