You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new transaction TokenReturn whose body includes a (AccountID account, TokenID tokenType) pair.
When handled, it will:
Return all units or NFTs of tokenType owned by account to tokenType's treasury.
Dissociate account from tokenType.
Charge no custom fees.
As long as account's key signs the transaction, the TokenReturn will succeed, even if account is frozen for the tokenType, or has KYC revoked for the tokenType; and even if tokenType is paused.
Alternatives
No response
The text was updated successfully, but these errors were encountered:
/**
* An account returns the token back to its treasury and dissociates from it.
* This operation is free from customFee and does not stop if account is frozen for the token or
* kyc on this token is revoked for this account or even if the token is paused.
* If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID.
* If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED.
* If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID.
* If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED.
* If the provided token is not associated with the provided account, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT.
*/
message TokenReturnTransactionBody {
/**
* The token to be returned.
*/
TokenID token = 1;
/**
* The account which returns the token to its treasury
*/
AccounID account = 2;
}
Problem
follow : hiero-ledger/hiero-consensus-node#2331
Solution
Add a new transaction
TokenReturn
whose body includes a(AccountID account, TokenID tokenType)
pair.When handled, it will:
tokenType
owned byaccount
totokenType
's treasury.account
fromtokenType
.As long as
account
's key signs the transaction, theTokenReturn
will succeed, even ifaccount
is frozen for thetokenType
, or has KYC revoked for thetokenType
; and even iftokenType
is paused.Alternatives
No response
The text was updated successfully, but these errors were encountered: