> For the complete documentation index, see [llms.txt](https://dexiejs.typogram.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexiejs.typogram.co/dexie/dexie.currenttransaction.md).

# Dexie.currentTransaction

#### Syntax

```javascript
var trans = Dexie.currentTransaction;
```

#### Type

Transaction

#### Description

If accessed from within a transaction scope, this property will contain the current Transaction instance. If not within a transaction scope scope, this property will be null.

The property is a Promise-local data variable and requires you to be in a Dexie.Promise flow. If you're using other Promise implementations, Dexie.currentTransaction will always be null.
