generated from PolymeshAssociation/typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Asset.Documents.Documents
VictorVicente edited this page Sep 16, 2022
·
8 revisions
api/entities/Asset/Documents.Documents
Handles all Asset Document related functionality
-
Namespace
<Asset
>↳
Documents
▸ get(paginationOpts?
): Promise
<ResultSet
<AssetDocument
>>
Retrieve all documents linked to the Asset
Note
supports pagination
Name | Type |
---|---|
paginationOpts? |
PaginationOptions |
Promise
<ResultSet
<AssetDocument
>>
▸ set(args
, opts?
): Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
Assign a new list of documents to the Asset by replacing the existing list of documents with the ones passed in the parameters
This requires two transactions
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 |
SetAssetDocumentsParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
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