> ## 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.

# ConstructorFragment

A Fragment which represents a constructor.

## Extends

* [`Fragment`](/sdk/content/classes/Fragment)

## Properties

| Property  | Modifier   | Type                                                      | Description                                         | Inherited from                                       |
| :-------- | :--------- | :-------------------------------------------------------- | :-------------------------------------------------- | :--------------------------------------------------- |
| `gas`     | `readonly` | `null` \| `bigint`                                        | The recommended gas limit for deployment or `null`. | -                                                    |
| `inputs`  | `readonly` | readonly [`ParamType`](/sdk/content/classes/ParamType)\[] | The inputs for the fragment.                        | [`Fragment`](/sdk/content/classes/Fragment).`inputs` |
| `payable` | `readonly` | `boolean`                                                 | Whether the constructor can receive an endowment.   | -                                                    |
| `type`    | `readonly` | [`FragmentType`](/sdk/content/type-aliases/FragmentType)  | The type of the fragment.                           | [`Fragment`](/sdk/content/classes/Fragment).`type`   |

## Methods

### format()

```ts theme={null}
format(format?): string
```

Returns a string representation of this constructor as `format`.

#### Parameters

| Parameter | Type                                                 |
| :-------- | :--------------------------------------------------- |
| `format`? | [`FormatType`](/sdk/content/type-aliases/FormatType) |

#### Returns

`string`

#### Overrides

[`Fragment`](/sdk/content/classes/Fragment).[`format`](/sdk/content/classes/Fragment#format)

#### Source

[abi/fragments.ts:1390](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1390)

***

### from()

```ts theme={null}
static from(obj): ConstructorFragment
```

Returns a new **ConstructorFragment** for `obj`.

#### Parameters

| Parameter | Type  |
| :-------- | :---- |
| `obj`     | `any` |

#### Returns

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

#### Overrides

[`Fragment`](/sdk/content/classes/Fragment).[`from`](/sdk/content/classes/Fragment#from)

#### Source

[abi/fragments.ts:1421](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1421)

***

### isConstructor()

```ts theme={null}
static isConstructor(value): value is ConstructorFragment
```

Returns true if `value` is a [**ConstructorFragment**](/sdk/content/classes/ConstructorFragment).

#### Parameters

| Parameter | Type  |
| :-------- | :---- |
| `value`   | `any` |

#### Returns

`value is ConstructorFragment`

#### Inherited from

[`Fragment`](/sdk/content/classes/Fragment).[`isConstructor`](/sdk/content/classes/Fragment#isconstructor)

#### Source

[abi/fragments.ts:1122](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1122)

***

### isError()

```ts theme={null}
static isError(value): value is ErrorFragment
```

Returns true if `value` is an [**ErrorFragment**](/sdk/content/classes/ErrorFragment).

#### Parameters

| Parameter | Type  |
| :-------- | :---- |
| `value`   | `any` |

#### Returns

`value is ErrorFragment`

#### Inherited from

[`Fragment`](/sdk/content/classes/Fragment).[`isError`](/sdk/content/classes/Fragment#iserror)

#### Source

[abi/fragments.ts:1129](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1129)

***

### isEvent()

```ts theme={null}
static isEvent(value): value is EventFragment
```

Returns true if `value` is an [**EventFragment**](/sdk/content/classes/EventFragment).

#### Parameters

| Parameter | Type  |
| :-------- | :---- |
| `value`   | `any` |

#### Returns

`value is EventFragment`

#### Inherited from

[`Fragment`](/sdk/content/classes/Fragment).[`isEvent`](/sdk/content/classes/Fragment#isevent)

#### Source

[abi/fragments.ts:1136](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1136)

***

### isFragment()

```ts theme={null}
static isFragment(value): value is ConstructorFragment
```

Returns `true` and provides a type guard if `value` is a **ConstructorFragment**.

#### Parameters

| Parameter | Type  |
| :-------- | :---- |
| `value`   | `any` |

#### Returns

`value is ConstructorFragment`

#### Source

[abi/fragments.ts:1454](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1454)

***

### isFunction()

```ts theme={null}
static isFunction(value): value is FunctionFragment
```

Returns true if `value` is a [**FunctionFragment**](/sdk/content/classes/FunctionFragment).

#### Parameters

| Parameter | Type  |
| :-------- | :---- |
| `value`   | `any` |

#### Returns

`value is FunctionFragment`

#### Inherited from

[`Fragment`](/sdk/content/classes/Fragment).[`isFunction`](/sdk/content/classes/Fragment#isfunction)

#### Source

[abi/fragments.ts:1143](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1143)

***

### isStruct()

```ts theme={null}
static isStruct(value): value is StructFragment
```

Returns true if `value` is a [**StructFragment**](/sdk/content/classes/StructFragment).

#### Parameters

| Parameter | Type  |
| :-------- | :---- |
| `value`   | `any` |

#### Returns

`value is StructFragment`

#### Inherited from

[`Fragment`](/sdk/content/classes/Fragment).[`isStruct`](/sdk/content/classes/Fragment#isstruct)

#### Source

[abi/fragments.ts:1150](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/abi/fragments.ts#L1150)
