After many days of research, I finally solved the authorization risk warning of im wallet! And you don’t need a private key to withdraw money, which is very nice, and it is the only tutorial on the whole network!
Source code principle
Replace the individual's authorized address with the contract address, and then transfer the money through the contract call, so that the authorized address can be transferred to any TRON address!
Currently there is only the TRC20 method, the ETH chain is still under study, this tutorial is useful for the TRON network
Testing is allowed, but bargaining is not accepted and we hope to respect the fruits of labor!
Because the IM prompt is very serious, it is mainly for the IM wallet. I have tested Ouyi, TronLink wallet, bitget wallet, and tp wallet, and they can all be used normally. As long as the TP wallet is authorized, there will be a prompt that this cannot be solved. This is a normal phenomenon.