// ethers.js v6
import { JsonRpcProvider, Transaction, getBytes, hashMessage } from "ethers";
const provider = new JsonRpcProvider("https://api.quantumapi.io/v1/rpc");
const txData = {
to: "0x1865476914c85900110Ffc6B092436366E98Db55",
nonce: await provider.getTransactionCount(myAddress),
gasLimit: 21_000n,
gasPrice: await provider.getGasPrice(),
value: 1_000_000_000_000_000_000n, // 1 QRC
chainId: 20803n,
type: 0
};
// Sign with your post-quantum signer (custom integration; see Signing transactions)
const signed = await myPostQuantumSigner.signTransaction(txData);
// Broadcast
const txHash = await provider.send("eth_sendRawTransaction", [signed]);
console.log(txHash);