EmmBee
EmmBee

Reputation: 169

Hedera Token Service - What is the difference between wipe and burn?

Can someone clarify what the difference in behaviour is for the HTS functions wipe() and burn() and why you would use them and in what scenarios?

They seem very similar in function to me.

Upvotes: 1

Views: 251

Answers (1)

Pathorn Teng
Pathorn Teng

Reputation: 513

Burn() is used to delete tokens from the treasury account.

Wipe() is used to delete tokens from a user account.

Therefore, when you call wipe you need to specify the account id that you want to delete the token from but you don't need to specify the account if when you call burn.

Upvotes: 3

Related Questions