# api\_entities\_Entity.Entity

[@polymeshassociation/polymesh-sdk](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes) / [Modules](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/modules) / [api/entities/Entity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/modules-1/api_entities_entity) / Entity

## Class: Entity\<UniqueIdentifiers, HumanReadable>

[api/entities/Entity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/modules-1/api_entities_entity).Entity

Represents an object or resource in the Polymesh Ecosystem with its own set of properties and functionality

### Type parameters

| Name                |
| ------------------- |
| `UniqueIdentifiers` |
| `HumanReadable`     |

### Hierarchy

* **`Entity`**

  ↳ [`Account`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_account.account)

  ↳ [`Asset`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_asset.asset)

  ↳ [`AuthorizationRequest`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_authorizationrequest.authorizationrequest)

  ↳ [`Checkpoint`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_checkpoint.checkpoint)

  ↳ [`CheckpointSchedule`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_checkpointschedule.checkpointschedule)

  ↳ [`CorporateActionBase`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_corporateactionbase.corporateactionbase)

  ↳ [`Identity`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_identity.identity)

  ↳ [`Instruction`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_instruction.instruction)

  ↳ [`Offering`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_offering.offering)

  ↳ [`PermissionGroup`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_permissiongroup.permissiongroup)

  ↳ [`Portfolio`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_portfolio.portfolio)

  ↳ [`Subsidy`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_subsidy.subsidy)

  ↳ [`TickerReservation`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_tickerreservation.tickerreservation)

  ↳ [`Venue`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_venue.venue)

### Table of contents

#### Properties

* [uuid](#uuid)

#### Methods

* [exists](#exists)
* [isEqual](#isequal)
* [toHuman](#tohuman)
* [generateUuid](#generateuuid)
* [isUniqueIdentifiers](#isuniqueidentifiers)
* [unserialize](#unserialize)

### Properties

#### uuid

• **uuid**: `string`

**Defined in**

[api/entities/Entity.ts:46](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Entity.ts#L46)

### Methods

#### exists

▸ `Abstract` **exists**(): `Promise`<`boolean`>

Determine whether this Entity exists on chain

**Returns**

`Promise`<`boolean`>

**Defined in**

[api/entities/Entity.ts:68](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Entity.ts#L68)

***

#### isEqual

▸ **isEqual**(`entity`): `boolean`

Determine whether this Entity is the same as another one

**Parameters**

| Name     | Type                                                                                                                                           |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `entity` | [`Entity`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_entity.entity)<`unknown`, `unknown`> |

**Returns**

`boolean`

**Defined in**

[api/entities/Entity.ts:61](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Entity.ts#L61)

***

#### toHuman

▸ `Abstract` **toHuman**(): `HumanReadable`

Returns Entity data in a human readable (JSON) format

**Returns**

`HumanReadable`

**Defined in**

[api/entities/Entity.ts:73](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Entity.ts#L73)

***

#### generateUuid

▸ `Static` **generateUuid**<`Identifiers`>(`identifiers`): `string`

Generate the Entity's UUID from its identifying properties

**Type parameters**

| Name          |
| ------------- |
| `Identifiers` |

**Parameters**

| Name          | Type          |
| ------------- | ------------- |
| `identifiers` | `Identifiers` |

**Returns**

`string`

**Defined in**

[api/entities/Entity.ts:14](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Entity.ts#L14)

***

#### isUniqueIdentifiers

▸ `Static` **isUniqueIdentifiers**(`identifiers`): `boolean`

Typeguard that checks whether the object passed corresponds to the unique identifiers of the class. Must be overridden

**Parameters**

| Name          | Type      | Description          |
| ------------- | --------- | -------------------- |
| `identifiers` | `unknown` | object to type check |

**Returns**

`boolean`

**Defined in**

[api/entities/Entity.ts:42](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Entity.ts#L42)

***

#### unserialize

▸ `Static` **unserialize**<`Identifiers`>(`serialized`): `Identifiers`

Unserialize a UUID into its Unique Identifiers

**Type parameters**

| Name          |
| ------------- |
| `Identifiers` |

**Parameters**

| Name         | Type     | Description         |
| ------------ | -------- | ------------------- |
| `serialized` | `string` | UUID to unserialize |

**Returns**

`Identifiers`

**Defined in**

[api/entities/Entity.ts:23](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Entity.ts#L23)
