UNPKG

@ledgerhq/coin-icon

Version:
14 lines 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.broadcast = void 0; const operation_1 = require("@ledgerhq/coin-framework/operation"); const node_1 = require("./api/node"); /** * Broadcast the signed transaction */ async function broadcast({ account, signedOperation, }) { const { hash } = await (0, node_1.broadcastTransaction)(signedOperation, account.currency); return (0, operation_1.patchOperationWithHash)(signedOperation.operation, hash); } exports.broadcast = broadcast; //# sourceMappingURL=broadcast.js.map