@ledgerhq/coin-hedera
Version:
Ledger Hedera Coin integration
9 lines (7 loc) • 384 B
text/typescript
import type { TransactionResponse } from "@hashgraph/sdk";
import { rpcClient } from "../network/rpc";
import { deserializeTransaction } from "./utils";
export const broadcast = async (txWithSignature: string): Promise<TransactionResponse> => {
const hederaTransaction = deserializeTransaction(txWithSignature);
return await rpcClient.broadcastTransaction(hederaTransaction);
};