> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# UTXO

Represents a UTXO (Unspent Transaction Output).

## Implements

## Implements

* `UTXOLike`

## Constructors

### new UTXO()

```ts theme={null}
new UTXO(): UTXO
```

Constructs a new UTXO instance with null properties.

#### Returns

[`UTXO`](/sdk/content/classes/UTXO)

#### Source

[transaction/utxo.ts:271](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/transaction/utxo.ts#L271)

## Accessors

### address

```ts theme={null}
get address(): string
```

Gets the address.

```ts theme={null}
set address(value): void
```

Sets the address.

#### Throws

If the address is invalid.

#### Parameters

| Parameter | Type     | Description  |
| :-------- | :------- | :----------- |
| `value`   | `string` | The address. |

#### Returns

`string`

The address.

#### Source

[transaction/utxo.ts:217](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/transaction/utxo.ts#L217)

***

### denomination

```ts theme={null}
get denomination(): null | number
```

Gets the denomination.

```ts theme={null}
set denomination(value): void
```

Sets the denomination.

#### Throws

If the denomination value is invalid.

#### Parameters

| Parameter | Type               | Description       |
| :-------- | :----------------- | :---------------- |
| `value`   | `null` \| `number` | The denomination. |

#### Returns

`null` | `number`

The denomination.

#### Source

[transaction/utxo.ts:237](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/transaction/utxo.ts#L237)

***

### index

```ts theme={null}
get index(): null | number
```

Gets the index.

```ts theme={null}
set index(value): void
```

Sets the index.

#### Parameters

| Parameter | Type               | Description |
| :-------- | :----------------- | :---------- |
| `value`   | `null` \| `number` | The index.  |

#### Returns

`null` | `number`

The index.

#### Source

[transaction/utxo.ts:199](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/transaction/utxo.ts#L199)

***

### txhash

```ts theme={null}
get txhash(): null | string
```

Gets the transaction hash.

```ts theme={null}
set txhash(value): void
```

Sets the transaction hash.

#### Parameters

| Parameter | Type               | Description           |
| :-------- | :----------------- | :-------------------- |
| `value`   | `null` \| `string` | The transaction hash. |

#### Returns

`null` | `string`

The transaction hash.

#### Source

[transaction/utxo.ts:181](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/transaction/utxo.ts#L181)

## Methods

### toJSON()

```ts theme={null}
toJSON(): any
```

Converts the UTXO instance to a JSON object.

#### Returns

`any`

A JSON representation of the UTXO instance.

#### Source

[transaction/utxo.ts:284](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/transaction/utxo.ts#L284)

***

### from()

```ts theme={null}
static from(utxo): UTXO
```

Creates a UTXO instance from a UTXOLike object.

#### Parameters

| Parameter | Type       | Description                     |
| :-------- | :--------- | :------------------------------ |
| `utxo`    | `UTXOLike` | The UTXOLike object to convert. |

#### Returns

[`UTXO`](/sdk/content/classes/UTXO)

The UTXO instance.

#### Source

[transaction/utxo.ts:299](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/transaction/utxo.ts#L299)
