Creates a Compute Budget Heap Frame instruction for a given program.
The public key of the target program.
Optional
The heap frame size to be allocated (defaults to NEON_HEAP_FRAME).
NEON_HEAP_FRAME
A Solana TransactionInstruction for setting the heap frame size.
TransactionInstruction
const instruction = createComputeBudgetHeapFrameInstruction(myProgramId, 256_000);transaction.add(instruction); Copy
const instruction = createComputeBudgetHeapFrameInstruction(myProgramId, 256_000);transaction.add(instruction);
Creates a Compute Budget Heap Frame instruction for a given program.