"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.genericBroadcast = void 0;
const operation_1 = require("@ledgerhq/coin-framework/operation");
const alpaca_1 = require("./alpaca");
const genericBroadcast = (network, kind) => async ({ signedOperation: { signature, operation }, account, broadcastConfig }) => {
    const hash = await (0, alpaca_1.getAlpacaApi)(account.currency.id, kind).broadcast(signature, broadcastConfig);
    return (0, operation_1.patchOperationWithHash)(operation, hash);
};
exports.genericBroadcast = genericBroadcast;
//# sourceMappingURL=broadcast.js.map