api_entities_Asset_Documents.Documents
@polymeshassociation/polymesh-sdk / Modules / api/entities/Asset/Documents / Documents
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 |
---|---|
|
Returns
Promise
<ResultSet
<AssetDocument
>>
Defined in
api/entities/Asset/Documents.ts:43
set
▸ set(args
, opts?
): Promise
<TransactionQueue
<Asset
, Asset
, unknown
[][]>>
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 |
---|---|
| |
|
Returns
Promise
<TransactionQueue
<Asset
, Asset
, unknown
[][]>>
Defined in
Last updated