@fairmint/canton-node-sdk
Version:
Canton Node SDK
21 lines • 758 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetLatestPrunedOffsets = void 0;
const core_1 = require("../../../../../core");
const zod_1 = require("zod");
const endpoint = '/v2/state/latest-pruned-offsets';
/**
* @description Get latest pruned offsets
* @example
* ```typescript
* const prunedOffsets = await client.getLatestPrunedOffsets();
* console.log(`Participant pruned up to: ${prunedOffsets.participantPrunedUpToInclusive}`);
* ```
*/
exports.GetLatestPrunedOffsets = (0, core_1.createApiOperation)({
paramsSchema: zod_1.z.any(),
method: 'GET',
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
buildRequestData: () => ({}),
});
//# sourceMappingURL=get-latest-pruned-offsets.js.map