@ledgerhq/coin-algorand
Version:
Ledger Algorand Coin integration
12 lines • 509 B
JavaScript
import { patchOperationWithHash } from "@ledgerhq/coin-framework/operation";
import algorandAPI from "./api";
/**
* Broadcast a signed transaction
* @param {signature: string, operation: string} signedOperation
*/
export const broadcast = async ({ signedOperation }) => {
const { signature, operation } = signedOperation;
const hash = await algorandAPI.broadcastTransaction(Buffer.from(signature, "hex"));
return patchOperationWithHash(operation, hash);
};
//# sourceMappingURL=broadcast.js.map