Type Alias hedera::TokenUnfreezeTransaction

source ·
pub type TokenUnfreezeTransaction = Transaction<TokenUnfreezeTransactionData>;
Expand description

Unfreezes transfers of the specified token for the account. Must be signed by the Token’s freezeKey.

Once executed the Account is marked as Unfrozen and will be able to receive or send tokens. The operation is idempotent.

  • 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 an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT.
  • If no Freeze Key is defined, the transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY.

Aliased Type§

struct TokenUnfreezeTransaction { /* private fields */ }

Implementations§

source§

impl TokenUnfreezeTransaction

source

pub fn get_account_id(&self) -> Option<AccountId>

Returns the account to be unfrozen.

source

pub fn account_id(&mut self, account_id: AccountId) -> &mut Self

Sets the account to be unfrozen.

source

pub fn get_token_id(&self) -> Option<TokenId>

Returns the token for which the account will be unfrozen.

source

pub fn token_id(&mut self, token_id: impl Into<TokenId>) -> &mut Self

Sets the token for which this account will be unfrozen.