0

Tldr; If I close an ATA with delegated authority, and reopen it, will it still have delegated authority?

Further details:

I’m trying to help someone who has been the victim of an NFT scam. As a result of the scam, all of his ATAs now have as delegated authority an attacker account. The problem is that he needs to still use some of those ATAs to recover some NFT staked somewhere.

Delegation of authority can be revoked using the Approve instruction (https://spl.solana.com/token#authority-delegation). This can be achieved using CLI or some wallets.

I figured as an alternative solution that he could close his ATAs using some DApps like https://soltricks.io/. When the staking site return his NFTs, the ATA will be reopened, with the same address (I have just checked).

Would a closed and reopened ATA lose his delegation authority? I cannot find info about that.

1 Answers1

0

If you close the account and then recreate it, there will be no more delegate, so it works for your situation.

As you mention, the easiest option is to use the revoke instruction. You can easily do this at the command line with spl-token revoke <MINT_ADDRESS>, assuming you have access to the owner keypair.

Jon C
  • 7,019
  • 10
  • 17
  • Thank you! I actually didn’t know that you could interact directly with the Token program using the CLI! I’ve just run a test: I delegated an ATA and closed the it afterwards with [https://loopcreativeandy.github.io/fee-redeemer/](https://loopcreativeandy.github.io/fee-redeemer/). You are right: Closing the ATA break the delegation, which is gone when the ATA is recreated. I’m going to recommend victims of this kind of scam to use this site to break the delegation and recover her funds. Is open source and the author has a good reputation. – Salvador Jesús Romero Jul 25 '22 at 17:48
  • 1
    I’ve documented my little experiment here, if anyone want to have a look: https://github.com/salvadorjesus/Countering_Solana_delegation_attacks – Salvador Jesús Romero Jul 26 '22 at 17:50