Closed trekze closed 3 years ago
passing the nonce
to send
function should allow for concurrent transfers.
await contract.methods
.transfer(to, new Unit(amount).asOne().toWei())
.send({
nonce: counter
from: from,
gasLimit: '250000', //default gaslimit for Hrc20 transaction is 250000
gasPrice: new hmy.utils.Unit('10').asGwei().toWei(),
})
Super!
Any chance you could have a look at my other issue?
Thanks in advance.
Simply, is it possible?
Whenever we attempt to run two token transfers concurrently, using:
One of them fails with an error, usually:
transaction failed:replacement transaction underprice
We could build a queuing system of course, but wondering if it's necessary.
Cheers