Skip to content

api.entities.Asset.Base.Documents.Documents

prashantasdeveloper edited this page Sep 18, 2024 · 34 revisions

Class: Documents

api/entities/Asset/Base/Documents.Documents

Handles all Asset Document related functionality

Hierarchy

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<void, void>>

Assign a new list of documents to the Asset by replacing the existing list of documents with the ones passed in the parameters

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<void, void>>

Clone this wiki locally