Type Alias hedera::TokenUnpauseTransaction

source ·
pub type TokenUnpauseTransaction = Transaction<TokenUnpauseTransactionData>;
Expand description

Unpauses the Token. Must be signed with the Token’s pause key.

Once executed the Token is marked as Unpaused and can be used in Transactions.

The operation is idempotent - becomes a no-op if the Token is already unpaused.

  • 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 no Pause Key is defined, the transaction will resolve to TOKEN_HAS_NO_PAUSE_KEY.

Aliased Type§

struct TokenUnpauseTransaction { /* private fields */ }

Implementations§

source§

impl TokenUnpauseTransaction

source

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

Returns the token to be unpaused.

source

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

Sets the token to be unpaused.