# TransactionList

A list associated with a transaction query.

### Constructor

```ts
new TransactionList(book, payload): TransactionList;
```

#### Parameters

| Parameter | Type |
| :------ | :------ |
| `book` | [`Book`](https://bkper.com/docs/api/bkper-js/classes/book.md) |
| `payload` | `TransactionList` |

#### Returns

`TransactionList`

### getAccount()

```ts
getAccount(): Promise;
```

Retrieves the account associated with the query, when filtering by account.

#### Returns

`Promise`\<[`Account`](https://bkper.com/docs/api/bkper-js/classes/account.md) \| `undefined`\>

The account associated with the query, or undefined if not set

***

### getCursor()

```ts
getCursor(): string | undefined;
```

Gets the cursor associated with the query for pagination.

#### Returns

`string` \| `undefined`

The cursor associated with the query for pagination

***

### getFirst()

```ts
getFirst(): Transaction | undefined;
```

Gets the first Transaction in the list.

#### Returns

[`Transaction`](https://bkper.com/docs/api/bkper-js/classes/transaction.md) \| `undefined`

The first Transaction in the list

***

### getItems()

```ts
getItems(): Transaction[];
```

Gets the transactions in the list.

#### Returns

[`Transaction`](https://bkper.com/docs/api/bkper-js/classes/transaction.md)[]

An array of Transaction objects

***

### size()

```ts
size(): number;
```

Gets the total number of transactions in the list.

#### Returns

`number`

The total number of transactions
