@fairmint/canton-node-sdk
Version:
Canton Node SDK
17 lines • 736 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsyncSubmit = void 0;
const core_1 = require("../../../../../../core");
const operations_1 = require("../../../../schemas/operations");
const endpoint = '/v2/commands/async/submit';
exports.AsyncSubmit = (0, core_1.createApiOperation)({
paramsSchema: operations_1.AsyncSubmitParamsSchema,
method: 'POST',
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
buildRequestData: (params, client) => ({
...params,
commandId: params.commandId ?? `async-submit-${Date.now()}-${Math.random().toString(36).substring(2, 8)}`,
actAs: params.actAs ?? [client.getPartyId()],
}),
});
//# sourceMappingURL=submit.js.map