For the complete documentation index, see llms.txt. This page is also available as Markdown.

api_entities_Entity.Entity

@polymeshassociation/polymesh-sdk / Modules / api/entities/Entity / Entity

Class: Entity<UniqueIdentifiers, HumanReadable>

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

Table of contents

Properties

Methods

Properties

uuid

• uuid: string

Defined in

api/entities/Entity.ts:46

Methods

exists

â–¸ Abstract exists(): Promise<boolean>

Determine whether this Entity exists on chain

Returns

Promise<boolean>

Defined in

api/entities/Entity.ts:68


isEqual

â–¸ isEqual(entity): boolean

Determine whether this Entity is the same as another one

Parameters

Name
Type

entity

Entity<unknown, unknown>

Returns

boolean

Defined in

api/entities/Entity.ts:61


toHuman

â–¸ Abstract toHuman(): HumanReadable

Returns Entity data in a human readable (JSON) format

Returns

HumanReadable

Defined in

api/entities/Entity.ts:73


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


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


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

Last updated