@ledgerhq/coin-algorand
Version:
Ledger Algorand Coin integration
16 lines • 664 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.broadcast = void 0;
const operation_1 = require("@ledgerhq/ledger-wallet-framework/operation");
const network_1 = require("./network");
/**
* Broadcast a signed transaction
* @param {signature: string, operation: string} signedOperation
*/
const broadcast = async ({ signedOperation }) => {
const { signature, operation } = signedOperation;
const hash = await (0, network_1.broadcastTransaction)(Buffer.from(signature, "hex"));
return (0, operation_1.patchOperationWithHash)(operation, hash);
};
exports.broadcast = broadcast;
//# sourceMappingURL=broadcast.js.map