Skip to main content

Reference / Modules / client / LocClient

Class: LocClient

client.LocClient

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LocClient(params): LocClient

Parameters

NameType
paramsObject
params.axiosFactoryAxiosFactory
params.legalOfficerLegalOfficerClass
params.nodeApiLogionNodeApiClass

Returns

LocClient

Defined in

packages/client/src/LocClient.ts:547

Properties

axiosFactory

Protected Readonly axiosFactory: AxiosFactory

Defined in

packages/client/src/LocClient.ts:557


legalOfficer

Protected Readonly legalOfficer: LegalOfficerClass

Defined in

packages/client/src/LocClient.ts:559


nodeApi

Protected Readonly nodeApi: LogionNodeApiClass

Defined in

packages/client/src/LocClient.ts:558

Methods

backend

backend(): AxiosInstance

Returns

AxiosInstance

Defined in

packages/client/src/LocClient.ts:565


checkDelivery

checkDelivery(parameters): Promise<CollectionDelivery>

Parameters

NameType
parametersCheckCollectionDeliveryRequest

Returns

Promise<CollectionDelivery>

Defined in

packages/client/src/LocClient.ts:715


checkTokensRecordDelivery

checkTokensRecordDelivery(parameters): Promise<CollectionDelivery>

Parameters

NameType
parametersCheckTokensRecordDeliveryRequest

Returns

Promise<CollectionDelivery>

Defined in

packages/client/src/LocClient.ts:719


getCollectionItem

getCollectionItem(parameters): Promise<undefined | UploadableCollectionItem>

Parameters

NameType
parameters{ itemId: Hash } & FetchParameters

Returns

Promise<undefined | UploadableCollectionItem>

Defined in

packages/client/src/LocClient.ts:569


getCollectionItems

getCollectionItems(parameters): Promise<UploadableCollectionItem[]>

Parameters

NameType
parametersFetchParameters

Returns

Promise<UploadableCollectionItem[]>

Defined in

packages/client/src/LocClient.ts:611


getCollectionSize

getCollectionSize(parameters): Promise<undefined | number>

Parameters

NameType
parametersFetchParameters

Returns

Promise<undefined | number>

Defined in

packages/client/src/LocClient.ts:635


getDeliveries

getDeliveries(parameters): Promise<ItemDeliveries>

Parameters

NameType
parametersGetDeliveriesRequest

Returns

Promise<ItemDeliveries>

Defined in

packages/client/src/LocClient.ts:713


getLoc

getLoc(parameters): Promise<LegalOfficerCase>

Parameters

NameType
parametersFetchParameters

Returns

Promise<LegalOfficerCase>

Defined in

packages/client/src/LocClient.ts:561


getLocRequest

getLocRequest(parameters): Promise<LocRequest>

Parameters

NameType
parametersFetchParameters

Returns

Promise<LocRequest>

Defined in

packages/client/src/LocClient.ts:711


getOffchainItem

getOffchainItem(parameters): Promise<OffchainCollectionItem>

Parameters

NameType
parametersObject
parameters.itemIdHash
parameters.locIdUUID

Returns

Promise<OffchainCollectionItem>

Defined in

packages/client/src/LocClient.ts:583


getOffchainItems

getOffchainItems(parameters): Promise<OffchainCollectionItem[]>

Parameters

NameType
parametersObject
parameters.locIdUUID

Returns

Promise<OffchainCollectionItem[]>

Defined in

packages/client/src/LocClient.ts:629


getOffchainRecord

getOffchainRecord(parameters): Promise<OffchainTokensRecord>

Parameters

NameType
parametersObject
parameters.locIdUUID
parameters.recordIdHash

Returns

Promise<OffchainTokensRecord>

Defined in

packages/client/src/LocClient.ts:657


getOffchainTokensRecords

getOffchainTokensRecords(parameters): Promise<OffchainTokensRecord[]>

Parameters

NameType
parametersGetTokensRecordsRequest

Returns

Promise<OffchainTokensRecord[]>

Defined in

packages/client/src/LocClient.ts:702


getTokensRecord

getTokensRecord(parameters): Promise<undefined | ClientTokensRecord>

Parameters

NameType
parameters{ recordId: Hash } & FetchParameters

Returns

Promise<undefined | ClientTokensRecord>

Defined in

packages/client/src/LocClient.ts:640


getTokensRecordDeliveries

getTokensRecordDeliveries(parameters): Promise<ItemDeliveries>

Parameters

NameType
parametersGetTokensRecordDeliveriesRequest

Returns

Promise<ItemDeliveries>

Defined in

packages/client/src/LocClient.ts:717


getTokensRecords

getTokensRecords(parameters): Promise<ClientTokensRecord[]>

Parameters

NameType
parametersGetTokensRecordsRequest

Returns

Promise<ClientTokensRecord[]>

Defined in

packages/client/src/LocClient.ts:679


mergeItems

mergeItems(onchainItem, offchainItem): UploadableCollectionItem

Parameters

NameType
onchainItemCollectionItem
offchainItemOffchainCollectionItem

Returns

UploadableCollectionItem

Defined in

packages/client/src/LocClient.ts:589


mergeRecords

mergeRecords(onchainItem, offchainItem): ClientTokensRecord

Parameters

NameType
onchainItemTypesTokensRecord
offchainItemOffchainTokensRecord

Returns

ClientTokensRecord

Defined in

packages/client/src/LocClient.ts:663