UNPKG

@fairmint/canton-node-sdk

Version:
26 lines 979 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateTransferOffer = void 0; const core_1 = require("../../../../../../core"); const operations_1 = require("../../../../schemas/operations"); /** * @description Create a new transfer offer to send tokens to another party * @example * ```typescript * const offer = await client.createTransferOffer({ * receiver_party_id: 'party123', * amount: '100', * description: 'Payment for services', * expires_at: Date.now() + 3600000, // 1 hour from now * tracking_id: 'unique-tracking-id' * }); * console.log(`Offer created: ${offer.offer_contract_id}`); * ``` */ exports.CreateTransferOffer = (0, core_1.createApiOperation)({ paramsSchema: operations_1.CreateTransferOfferParamsSchema, method: 'POST', buildUrl: (_params, apiUrl) => `${apiUrl}/api/validator/v0/wallet/transfer-offers`, buildRequestData: (params) => params, }); //# sourceMappingURL=create.js.map