Skip to main content
Version: 29.0.x

Class: Documents

Defined in: src/api/entities/Asset/Base/Documents/index.ts:16

Handles all Asset Document related functionality

Extends

Methods

get()

get(paginationOpts?: PaginationOptions): Promise<ResultSet<AssetDocument>>

Defined in: src/api/entities/Asset/Base/Documents/index.ts:39

Retrieve all documents linked to the Asset

Parameters

ParameterType

paginationOpts?

PaginationOptions

Returns

Promise<ResultSet<AssetDocument>>

Note

supports pagination


set()

set(args: SetAssetDocumentsParams, opts?: ProcedureOpts): Promise<GenericPolymeshTransaction<void, void>>

Defined in: src/api/entities/Asset/Base/Documents/index.ts:32

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

Parameters

ParameterType

args

SetAssetDocumentsParams

opts?

ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<void, void>>

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