0

I am newbie, I am testing . I have 1 question. How to withdraw usdt from an approved spender?. We hope to receive an answerenter image description here

1 Answer 1

0

Easiest way to withdraw it is by using the etherscan(or the relevant explorer itself). Goreli USDT

As the token contract is verified you can use the write functions which is exposed through the explorer to withdraw the token.

When you are in the write contract tab, connect the wallet, fill up the data and execute.

from : spender's address to : your address value : the approved amount

5
  • Thank you sir , I see some contracts automatically withdraw without manual steps . Can you send me an article about this. Have a nice day.
    – thu anh
    Jan 4, 2023 at 18:29
  • if you referring to do the approval and the transferFrom in one transaction, it is not possible. If you are the owner you can just transfer the tokens directly to another account without approvals. refer: ethereum.stackexchange.com/questions/79653/… Jan 4, 2023 at 18:43
  • Thank you, I mean create a smart contract, automatically call transferFrom
    – thu anh
    Jan 4, 2023 at 18:49
  • you can not program a smart contract to do something automatically when an event occurred. but it is possible offchain using something like JavaScript and listening to log events. these will be helpful. stackoverflow.com/questions/71488069/… - betterprogramming.pub/learn-solidity-events-2801d6a99a92 Jan 4, 2023 at 19:05
  • thanks you, love you
    – thu anh
    Jan 4, 2023 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.