UNPKG

@fairmint/canton-node-sdk

Version:
20 lines 833 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WithdrawTransferOffer = void 0; const core_1 = require("../../../../../../core"); const operations_1 = require("../../../../schemas/operations"); /** * @description Withdraw a transfer offer by contract ID * @example * ```typescript * const result = await client.withdrawTransferOffer({ contractId: 'contract123' }); * console.log(`Withdrawn offer: ${result.withdrawn_offer_contract_id}`); * ``` */ exports.WithdrawTransferOffer = (0, core_1.createApiOperation)({ paramsSchema: operations_1.WithdrawTransferOfferParamsSchema, method: 'POST', buildUrl: (params, apiUrl) => `${apiUrl}/api/validator/v0/wallet/transfer-offers/${params.contractId}/withdraw`, buildRequestData: () => ({}), }); //# sourceMappingURL=withdraw.js.map