> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/net/minecraft/network/client/c0fpacketconfirmtransaction.md).

# C0FPacketConfirmTransaction

A packet sent by the client to confirm a transaction.

### Extends

* [`Packet`](/api/net/minecraft/network/packet.md)

### 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`](/api/net/minecraft/network/packet.md).[`getPacketID`](/api/net/minecraft/network/packet.md#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`
