Mirror SDK
Mirroring and projection operations.Operations
| Method | Description |
|---|---|
lucidGetAgentReceipts | Get agent receipts |
lucidGetAgentEpoch | Get agent current epoch |
lucidGetAgentProof | Get agent latest proof |
lucidGetAgentRunProof | Get proof for specific run |
Generated Reference
Overview
Available Operations
- lucidGetAgentReceipts - Get agent receipts
- lucidGetAgentEpoch - Get agent current epoch
- lucidGetAgentProof - Get agent latest proof
- lucidGetAgentRunProof - Get proof for specific run
lucidGetAgentReceipts
Paginated receipts filtered by agent passport ID. Admin auth required.Example Usage
Standalone function
The standalone function version of this method:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
request | operations.LucidGetAgentReceiptsRequest | :heavy_check_mark: | The request object to use for the request. |
security | operations.LucidGetAgentReceiptsSecurity | :heavy_check_mark: | The security requirements to use for the request. |
options | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
options.fetchOptions | RequestInit | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries | RetryConfig | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
Response
Promise<operations.LucidGetAgentReceiptsResponse>Errors
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.ErrorResponse | 401 | application/json |
| errors.ErrorResponse | 500 | application/json |
| errors.RaijinLabsLucidAiDefaultError | 4XX, 5XX | */* |
lucidGetAgentEpoch
Get the current open epoch for an agent. Checks both in-memory state and database for coverage across restarts.Example Usage
Standalone function
The standalone function version of this method:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
request | operations.LucidGetAgentEpochRequest | :heavy_check_mark: | The request object to use for the request. |
security | operations.LucidGetAgentEpochSecurity | :heavy_check_mark: | The security requirements to use for the request. |
options | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
options.fetchOptions | RequestInit | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries | RetryConfig | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
Response
Promise<operations.LucidGetAgentEpochResponse>Errors
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.ErrorResponse | 401 | application/json |
| errors.ErrorResponse | 500 | application/json |
| errors.RaijinLabsLucidAiDefaultError | 4XX, 5XX | */* |
lucidGetAgentProof
Get the latest MMR proof for an agent (most recent anchored epoch).Example Usage
Standalone function
The standalone function version of this method:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
request | operations.LucidGetAgentProofRequest | :heavy_check_mark: | The request object to use for the request. |
security | operations.LucidGetAgentProofSecurity | :heavy_check_mark: | The security requirements to use for the request. |
options | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
options.fetchOptions | RequestInit | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries | RetryConfig | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
Response
Promise<models.AgentProof>Errors
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.ErrorResponse | 401, 404 | application/json |
| errors.ErrorResponse | 500 | application/json |
| errors.RaijinLabsLucidAiDefaultError | 4XX, 5XX | */* |
lucidGetAgentRunProof
Get proof details for a specific run_id (leaf-level proof with receipt data).Example Usage
Standalone function
The standalone function version of this method:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
request | operations.LucidGetAgentRunProofRequest | :heavy_check_mark: | The request object to use for the request. |
security | operations.LucidGetAgentRunProofSecurity | :heavy_check_mark: | The security requirements to use for the request. |
options | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
options.fetchOptions | RequestInit | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries | RetryConfig | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
Response
Promise<models.AgentRunProof>Errors
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.ErrorResponse | 401, 404 | application/json |
| errors.ErrorResponse | 500 | application/json |
| errors.RaijinLabsLucidAiDefaultError | 4XX, 5XX | */* |
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)