I made a transaction on uniswap, with code like:
const provider = ethers.getDefaultProvider('mainnet', {
infura: INFURA_ID
})
const signer = new ethers.Wallet(MY_WALLET_PRIVATE_KEY)
const account = signer.connect(provider)
const uniswap = new ethers.Contract(
//...
)
const tx = await uniswap.swapExactTokensForTokens(
amountIn.toString(),
amountOutMin.toString(),
path,
to,
deadline,
{
gasLimit: 1000000,
gasPrice: ethers.utils.parseUnits("30", "gwei")
}
)
const receipt = await tx.wait()
It has been 5 hours, it's still pending. The transaction: https://etherscan.io/tx/0x6208c9e981bdb8bb0dde1816550c0b0f046977d83d2a55e3aba178977cc05cd0
I cannot do further transaction, it says
There is a Pending txn with a lower account nonce. This txn can only be executed after confirmation of the earlier Txn Hash#
I found some topic says use a "nonce" to cancel a transaction, but I don't find any "nonce" on etherscan page.
How to terminate the transaction?