# C0FPacketConfirmTransaction

A packet sent by the client to confirm a transaction.

### Extends

* [`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet)

### Constructors

#### Constructor

> **new C0FPacketConfirmTransaction**(`windowId`, `actionNumber`, `accepted`): `C0FPacketConfirmTransaction`

Creates a new C0FPacketConfirmTransaction packet

**Parameters**

**windowId**

`number`

The window ID

**actionNumber**

`number`

The action number to confirm

**accepted**

`boolean`

Whether the transaction was accepted

**Returns**

`C0FPacketConfirmTransaction`

**Overrides**

`Packet.constructor`

### Methods

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet).[`getPacketID`](https://scripting.breeze.rip/api/net/minecraft/packet#getpacketid)

***

#### getUid()

> **getUid**(): `number`

Gets the unique ID of this transaction

**Returns**

`number`

The transaction ID

***

#### getWindowId()

> **getWindowId**(): `number`

Gets the window ID associated with this transaction

**Returns**

`number`

The window ID

***

#### isAccepted()

> **isAccepted**(): `boolean`

Checks if the transaction was accepted

**Returns**

`boolean`

True if accepted, false otherwise

***

#### setAccepted()

> **setAccepted**(`accepted`): `void`

Sets whether this transaction is accepted

**Parameters**

**accepted**

`boolean`

True to accept, false to reject

**Returns**

`void`

***

#### setUid()

> **setUid**(`uid`): `void`

Sets the unique ID for this transaction

**Parameters**

**uid**

`number`

The new transaction ID

**Returns**

`void`

***

#### setWindowId()

> **setWindowId**(`windowId`): `void`

Sets the window ID for this transaction

**Parameters**

**windowId**

`number`

The new window ID

**Returns**

`void`
