UNPKG

@fairmint/canton-node-sdk

Version:
17 lines 751 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubmitAndWait = void 0; const core_1 = require("../../../../../core"); const operations_1 = require("../../../schemas/operations"); const endpoint = '/v2/commands/submit-and-wait'; exports.SubmitAndWait = (0, core_1.createApiOperation)({ paramsSchema: operations_1.SubmitAndWaitParamsSchema, method: 'POST', buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`, buildRequestData: (params, client) => ({ ...params, commandId: params.commandId ?? `submit-and-wait-${Date.now()}-${Math.random().toString(36).substring(2, 8)}`, actAs: params.actAs ?? [client.getPartyId()], }), }); //# sourceMappingURL=submit-and-wait.js.map