-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Asset.Base.Metadata.Metadata
api/entities/Asset/Base/Metadata.Metadata
Handles all Asset Metadata related functionality
-
Namespace
<BaseAsset
>↳
Metadata
▸ get(): Promise
<MetadataEntry
[]>
Retrieve all (global + local) the MetadataEntry for this Asset
Promise
<MetadataEntry
[]>
Note
this returns all available metadata entries for this Asset, with or without any value being associated with the metadata
api/entities/Asset/Base/Metadata/index.ts:69
▸ getDetails(): Promise
<MetadataWithValue
[]>
Retrieve all (local + global) the MetadataEntry details whose value is set for this Asset
Promise
<MetadataWithValue
[]>
api/entities/Asset/Base/Metadata/index.ts:183
▸ getOne(args
): Promise
<MetadataEntry
>
Retrieve a single MetadataEntry by its ID and type
Name | Type |
---|---|
args |
Object |
args.id |
BigNumber |
args.type |
MetadataType |
Promise
<MetadataEntry
>
Throws
if there is no MetadataEntry with the passed ID and specified type
api/entities/Asset/Base/Metadata/index.ts:115
▸ register(args
, opts?
): Promise
<GenericPolymeshTransaction
<MetadataEntry
, MetadataEntry
>>
Register a metadata for this Asset and optionally set its value.
The metadata value can be set by passing value
parameter and specifying other optional details
about the value
Name | Type |
---|---|
args |
RegisterMetadataParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<MetadataEntry
, MetadataEntry
>>
Note
This registers a metadata of type Local
Note
this method is of type ProcedureMethod, which means you can call register.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- 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