query/modules/smartLicenses.SmartLicensesQueryModule

Module for querying smart license data from The Graph

Table of contents

Methods

constructor

new SmartLicensesQueryModule(queryClient): SmartLicensesQueryModule

Parameters

NameType
queryClientQueryClient

Returns

SmartLicensesQueryModule

Methods

getSmartLicenses

getSmartLicenses(params?, smartLicenseId?): Promise<SmartLicensesResponse>

Get a list of smart licenses based on filtering and pagination parameters

Parameters

NameTypeDescription
paramsPaginationParamsPagination parameters
smartLicenseId?stringOptional filter by specific smart license ID

Returns

Promise<SmartLicensesResponse>

List of smart licenses with pagination info

getSmartLicenseById

getSmartLicenseById(id): Promise<null | SmartLicenseObject>

Get a single smart license by its ID

Parameters

NameTypeDescription
idstringThe smart license ID

Returns

Promise<null | SmartLicenseObject>

The smart license or null if not found

getSmartLicenseByHash

getSmartLicenseByHash(licenseHash): Promise<null | SmartLicenseObject>

Get a smart license by its hash

Parameters

NameTypeDescription
licenseHashstringSmart license hash

Returns

Promise<null | SmartLicenseObject>

The smart license or null if not found