Editors Note: This article comes fromimToken(ID:imToken), reprinted by Odaily with authorization.
Editors Note: This article comes from
, reprinted by Odaily with authorization. Everyone has dreamed of being a mysterious detective when they were young. I don’t know if you still maintain this curiosity deep in your heart, or you have been overwhelmed by reality. It doesnt matter, today imToken will go to the blockchain world with you to find out. Lets start with the simplest transfer and break down the reasons for their failure one by one. https://imtoken.fans/t/topic/19696 Before starting the official transfer, please make sure you have upgraded to imToken 2.0 version. In fact, some of the transfer problems can be completely avoided through product upgrades. Its like the difference between an old car and a new car. Do you want to continue to drive Tesla model 1, or get started with the latest Tesla model 3 immediately? Friends who have already used version 2.0, please share your smooth experience in the comment area without reservation!
For users who are still using 1.0, dont worry, we have specially prepared a 2.0 migration guide for you:
When you see a transaction that shows transfer failure on imToken, it is usually caused by the following three reasons:
Out of gas I Gas is not enough
Reverted I Reverted
secondary title
Out of gas
image descriptionInformation queried in Etherscan。
Before understanding why there is insufficient gas, lets review
what is gas
Then back to the world of blockchain, the same is true. If you want to make a transfer, you need to set a Gas for the transfer. If you set it too low, there will be a situation where the car has no gas before reaching the destination, that is, the transaction fails. The reason for the failure is out of gas (insufficient gasoline). At the same time, because the miners have already carried out the packaging operation, but found that there was insufficient Gas during the packaging process, the packaging of this transaction failed. The miner fee will still be deducted, but these miner fees are collected by the miners, and imToken does not charge you a penny.
How to avoid this problem? Dont worry, imToken version 2.0 will set a reasonable Gas value for you, so that your transaction can be packaged smoothly. Of course, you can also choose to customize the settings, but please note that if you do not set them properly, you will lose the miner fee.
Bad Instruction (instruction error)
Bad instruction literally means instruction error. The reason for this prompt is that there is a high probability that the code of the smart contract itself has logic problems, which leads to instruction errors during the execution of the contract. Its like a broken machine, if you input an instruction, the machine will not work normally. At this time, who should we turn to for solution? Of course, it is the creator of the smart contract to fix this broken machine. In addition, the miners fee for the transfer will still be collected by the miners.
secondary title
Reverted
There are two types of accounts on Ethereum, ordinary accounts and contract accounts. Ordinary accounts are controlled by users through private keys, while contract accounts are controlled by smart contracts deployed on Ethereum.
Seeing this, everyone must have understood that the occurrence of bad instruction and reverted is due to the problem of the smart contract, so it is recommended that you go directly to the creator of the contract, that is, the project party.
at last
secondary title
👉 Etherscan :https://cn.etherscan.com