@fairmint/canton-node-sdk
Version:
Canton Node SDK
33 lines • 1.8 kB
TypeScript
import { z } from 'zod';
import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
declare const endpoint: "/v2/state/latest-pruned-offsets";
export type GetLatestPrunedOffsetsParams = paths[typeof endpoint]['get']['parameters']['query'];
export type GetLatestPrunedOffsetsResponse = paths[typeof endpoint]['get']['responses']['200']['content']['application/json'];
/**
* @description Get latest pruned offsets
* @example
* ```typescript
* const prunedOffsets = await client.getLatestPrunedOffsets();
* console.log(`Participant pruned up to: ${prunedOffsets.participantPrunedUpToInclusive}`);
* ```
*/
export declare const GetLatestPrunedOffsets: {
new (client: import("../../../../../core").BaseClient): {
execute(params: undefined): Promise<{
participantPrunedUpToInclusive: number;
allDivulgedContractsPrunedUpToInclusive: number;
}>;
client: import("../../../../../core").BaseClient;
validateParams<T>(params: T, schema: z.ZodSchema<T>): T;
makeGetRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>;
makePostRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>;
makeDeleteRequest<T>(url: string, config?: import("../../../../../core").RequestConfig): Promise<T>;
makePatchRequest<T>(url: string, data: unknown, config?: import("../../../../../core").RequestConfig): Promise<T>;
getManagedParties(): string[];
getPartyId(): string | undefined;
getApiUrl(): string;
buildPartyList(additionalParties?: string[]): string[];
};
};
export {};
//# sourceMappingURL=get-latest-pruned-offsets.d.ts.map