Hello friends
Suppose I have some USDT ERC20 in my Metamsk wallet.
Metamsk asks me for ETH to transfer USDT.
Is it possible that by writing a smart contract, I will pay the fee in USDT and not transfer the ETH to Metamsk Wallet?
In fact, I want to pay the fee with the USDT in the Metamsk bag.
I would appreciate any help.
Thank You
It's impossible.
but we can write a code that swaps your USDT with ETH and use ETH for gas fee.
1 Like
Thank you for the answer.
please explain more.
If possible, refer me to an example.
no example now.
but you need to write a code with your private key to interact with uniswap router.
1 Like
Should I use this document?
I did some searching.
Can this method be used to solve the problem?
Does anyone help me here? 