Hi @Rajat_Goel,
Since transactions are built on concepts of logical sessions they require mecahnics (like oplog) which are only available in replica set environment.
You can always convert a standalone to a single noded replica set and transactions will work with this one node.
Best
Pavel