getTransactionMessageHeapSize
Returns the heap size 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.heapSize. - Legacy / V0: Searches the instructions for a
RequestHeapFrameinstruction and decodes its value.
Parameters
| Parameter | Type | Description |
|---|---|---|
transactionMessage | TransactionMessage | The transaction message to inspect. |
Returns
number | undefined
The heap size in bytes, or undefined if none is set.