-
Notifications
You must be signed in to change notification settings - Fork 12
api.entities.Asset.Metadata.Metadata
api/entities/Asset/Metadata.Metadata
Handles all Asset Metadata related functionality
-
Namespace<Asset>↳
Metadata
▸ get(): Promise<MetadataEntry[]>
Retrieve all the MetadataEntry for this Asset
Promise<MetadataEntry[]>
▸ getOne(args): Promise<MetadataEntry>
Retrieve a single MetadataEntry by its ID and type
Throws
if there is no MetadataEntry with the passed ID and specified type
| Name | Type |
|---|---|
args |
Object |
args.id |
BigNumber |
args.type |
MetadataType |
Promise<MetadataEntry>
▸ 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
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
| Name | Type |
|---|---|
args |
RegisterMetadataParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<MetadataEntry, MetadataEntry>>
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