UNPKG

@ledgerhq/coin-icon

Version:
13 lines 544 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.broadcast = broadcast; const operation_1 = require("@ledgerhq/ledger-wallet-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); } //# sourceMappingURL=broadcast.js.map