Function destroyScheduledTransactionInstruction

  • Creates a transaction instruction to destroy a scheduled transaction.

    Parameters

    • data: DestroyScheduledTransactionData

      The necessary data for destroying the scheduled transaction.

      • balanceAddress: PublicKey
      • neonEvmProgram: PublicKey
      • signerAddress: PublicKey
      • treeAccountAddress: PublicKey

    Returns TransactionInstruction

    A Solana TransactionInstruction to destroy the scheduled transaction.

    const instruction = destroyScheduledTransactionInstruction({
    neonEvmProgram,
    signerAddress,
    balanceAddress,
    treeAccountAddress
    });
    transaction.add(instruction);