import { respond, getParams, getUuid } from './rpc_utils.js';
import { Binary } from 'polkadot-api';

const transaction_v1_broadcast = (con, req, { txPool }) => {
  const { transaction } = getParams(req, ["transaction"]);
  txPool.addTx(Binary.fromHex(transaction));
  const opId = getUuid();
  return con.send(respond(req, opId));
};
const transaction_v1_stop = (con, req) => con.send(respond(req, null));

export { transaction_v1_broadcast, transaction_v1_stop };
//# sourceMappingURL=transaction_v1.js.map
