I constantly get failed transactions when sending out tokens like USDT using metamask. I have my gwei set at 10 and the gas limit at 21000. I even tried gas limit set to 51000 and it still fails. Where can I go to easily calculate what numbers to put to send out my tokens? Obviously metamask isn't calculating this correctly.
1 Answer
The solution to sending out tokens is to look at other transactions that are sending the same token from its contract source. From there you can see how much other people are paying and what you should set in the settings. For me, looked at the usdt contract and saw others setting GAS_PRICE
to 1 Gwei and gas limit to 400,000. That worked.
gasLimit
, you'll get back whatever's not being used (unlikegasPrice
, which you will pay in full). The only thing to worry about is if the contract with which you interact performs some wasteful operations (intentionally or unintentionally). The idea aboutgasLimit
is just to protect you from spending more than the maximum that you're willing to.transfer
function has failed (which is typically at the beginning of it, so you hardly pay anything).