• Creates a Compute Budget Heap Frame instruction for a given program.

    Parameters

    • programId: PublicKey

      The public key of the target program.

    • OptionalneonHeapFrame: string = NEON_HEAP_FRAME

      The heap frame size to be allocated (defaults to NEON_HEAP_FRAME).

    Returns TransactionInstruction

    A Solana TransactionInstruction for setting the heap frame size.

    const instruction = createComputeBudgetHeapFrameInstruction(myProgramId, 256_000);
    transaction.add(instruction);