@fairmint/canton-node-sdk
Version:
Canton Node SDK
36 lines • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubmitExternalPartyTopology = void 0;
const zod_1 = require("zod");
const core_1 = require("../../../../../core");
/**
* Submit signed external party topology transactions
*
* Submits the topology transactions that were generated by generateExternalPartyTopology along with their signatures.
*
* @example
* ```typescript
* const result = await client.submitExternalPartyTopology({
* public_key: 'hex-encoded-ed25519-public-key',
* signed_topology_txs: [
* {
* topology_tx: 'base64-encoded-transaction',
* signed_hash: 'hex-encoded-signature'
* }
* ]
* });
* ```;
*/
exports.SubmitExternalPartyTopology = (0, core_1.createApiOperation)({
paramsSchema: zod_1.z.object({
public_key: zod_1.z.string(),
signed_topology_txs: zod_1.z.array(zod_1.z.object({
topology_tx: zod_1.z.string(),
signed_hash: zod_1.z.string(),
})),
}),
method: 'POST',
buildUrl: (_params, apiUrl) => `${apiUrl}/api/validator/v0/admin/external-party/topology/submit`,
buildRequestData: (params) => params,
});
//# sourceMappingURL=submit-external-party-topology.js.map