@fairmint/canton-node-sdk
Version:
Canton Node SDK
45 lines • 2.39 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/updates/transaction-tree-by-offset/{offset}";
export declare const GetTransactionTreeByOffsetParamsSchema: z.ZodObject<{
offset: z.ZodString;
verbose: z.ZodOptional<z.ZodBoolean>;
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
export type GetTransactionTreeByOffsetParams = z.infer<typeof GetTransactionTreeByOffsetParamsSchema>;
export type GetTransactionTreeByOffsetResponse = paths[typeof endpoint]['get']['responses']['200']['content']['application/json'];
/**
* @description Retrieves transaction tree data starting from a specific offset
* @example
* ```typescript
* const transactionTree = await client.getTransactionTreeByOffset({
* offset: '1000',
* parties: ['party1', 'party2']
* });
* ```
* @param offset - The starting offset for transaction retrieval
* @param parties - Optional array of party IDs to filter transactions by
*/
export declare const GetTransactionTreeByOffset: {
new (client: import("../../../../../core").BaseClient): {
execute(params: {
offset: string;
verbose?: boolean | undefined;
parties?: string[] | undefined;
}): Promise<{
transaction: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsTransactionTree"];
}>;
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-transaction-tree-by-offset.d.ts.map