api.entities.Asset.Documents.Documents - PolymeshAssociation/polymesh-sdk GitHub Wiki
Class: Documents
api/entities/Asset/Documents.Documents
Handles all Asset Document related functionality
Hierarchy
-
Namespace
<Asset
>↳
Documents
Table of contents
Methods
Methods
get
▸ get(paginationOpts?
): Promise
<ResultSet
<AssetDocument
>>
Retrieve all documents linked to the Asset
Note
supports pagination
Parameters
Name | Type |
---|---|
paginationOpts? |
PaginationOptions |
Returns
Promise
<ResultSet
<AssetDocument
>>
set
▸ 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
Parameters
Name | Type |
---|---|
args |
SetAssetDocumentsParams |
opts? |
ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>