-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.MetadataEntry.MetadataEntry
api/entities/MetadataEntry.MetadataEntry
Represents an Asset MetadataEntry in the Polymesh blockchain
-
Entity<UniqueIdentifiers,HumanReadable>↳
MetadataEntry
• asset: BaseAsset
Asset for which this is the metadata
api/entities/MetadataEntry/index.ts:37
• id: BigNumber
identifier number of the MetadataEntry
api/entities/MetadataEntry/index.ts:47
• type: MetadataType
Type of metadata represented by this instance
api/entities/MetadataEntry/index.ts:42
• uuid: string
▸ details(): Promise<MetadataDetails>
Retrieve name and specs for this MetadataEntry
Promise<MetadataDetails>
▸ exists(): Promise<boolean>
Determine whether this MetadataEntry exists on chain
Promise<boolean>
▸ isEqual(entity): boolean
Determine whether this Entity is the same as another one
| Name | Type |
|---|---|
entity |
Entity<unknown, unknown> |
boolean
▸ set(args, opts?): Promise<GenericPolymeshTransaction<MetadataEntry, MetadataEntry>>
Assign new value for the MetadataEntry along with its details or optionally only set the details (expiry + lock status) of any Metadata value
Note
- Value or the details can only be set if the MetadataEntry is not locked
Note
this method is of type ProcedureMethod, which means you can call set.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
| Name | Type |
|---|---|
args |
SetMetadataParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<MetadataEntry, MetadataEntry>>
▸ toHuman(): HumanReadable
Return the MetadataEntry's ID, Asset ticker and Metadata type
▸ value(): Promise<null | MetadataValue>
Retrieve the value and details (expiry + lock status) for this MetadataEntry
Note
- This returns
nullif no value is yet specified for this MetadataEntry
Promise<null | MetadataValue>
▸ Static generateUuid<Identifiers>(identifiers): string
Generate the Entity's UUID from its identifying properties
| Name |
|---|
Identifiers |
| Name | Type |
|---|---|
identifiers |
Identifiers |
string
▸ Static unserialize<Identifiers>(serialized): Identifiers
Unserialize a UUID into its Unique Identifiers
| Name |
|---|
Identifiers |
| Name | Type | Description |
|---|---|---|
serialized |
string |
UUID to unserialize |
Identifiers
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Corporate Ballot
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types