I am using HardHat and ethers to send mint
transaction:
const ABI = (await ethers.getContractFactory("MyContract")).interface
const contract_address = "0xABCDABCD"
const [signer] = await ethers.getSigners()
const MyContract = await new ethers.Contract(contract_address, ABI, signer)
tx = await MyContract.mint({ gasPrice: price * 4 })
Now I want the mint transaction to be private. The doc I found was this:
const provider = new ethers.providers.JsonRpcProvider("https://dark-red-uranium.discover.quiknode.pro/XXXXXXX");
const network = await provider.send("eth_sendPrivateTransaction", ["FILL_ME_ARG_1"]);
How do I send the mint
transaction using this syntax?