> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spaceport.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: SmartLicensesQueryModule

[query/modules/smartLicenses](../modules/query_modules_smartLicenses).SmartLicensesQueryModule

Module for querying smart license data from The Graph

## Table of contents

#### Methods

* [getSmartLicenses](#getsmartlicenses)
* [getSmartLicenseById](#getsmartlicensebyid)
* [getSmartLicenseByHash](#getsmartlicensebyhash)

### constructor

• **new SmartLicensesQueryModule**(`queryClient`): [`SmartLicensesQueryModule`](./query/modules/smart-licenses-query-module)

#### Parameters

| Name | Type |
| :- | :- |
| `queryClient` | [`QueryClient`](./query/query) |

#### Returns

[`SmartLicensesQueryModule`](./query/modules/smart-licenses-query-module)

## Methods

### getSmartLicenses

▸ **getSmartLicenses**(`params?`, `smartLicenseId?`): `Promise`\<[`SmartLicensesResponse`](../types/smart-licenses-response)>

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

#### Parameters

| Name | Type | Description |
| :- | :- | :- |
| `params` | [`PaginationParams`](../types/pagination-params) | Pagination parameters |
| `smartLicenseId?` | `string` | Optional filter by specific smart license ID |

#### Returns

`Promise`\<[`SmartLicensesResponse`](../types/smart-licenses-response)>

List of smart licenses with pagination info

### getSmartLicenseById

▸ **getSmartLicenseById**(`id`): `Promise`\<`null` | [`SmartLicenseObject`](../types/smart-license-object)>

Get a single smart license by its ID

#### Parameters

| Name | Type | Description |
| :- | :- | :- |
| `id` | `string` | The smart license ID |

#### Returns

`Promise`\<`null` | [`SmartLicenseObject`](../types/smart-license-object)>

The smart license or null if not found

### getSmartLicenseByHash

▸ **getSmartLicenseByHash**(`licenseHash`): `Promise`\<`null` | [`SmartLicenseObject`](../types/smart-license-object)>

Get a smart license by its hash

#### Parameters

| Name | Type | Description |
| :- | :- | :- |
| `licenseHash` | `string` | Smart license hash |

#### Returns

`Promise`\<`null` | [`SmartLicenseObject`](../types/smart-license-object)>

The smart license or null if not found


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.