Type Alias hedera::TokenPauseTransaction

source ·
pub type TokenPauseTransaction = Transaction<TokenPauseTransactionData>;
Expand description

Pauses the Token from being involved in any kind of Transaction until it is unpaused.

Must be signed with the Token’s pause key.

Once executed the Token is marked as paused and will be not able to be a part of any transaction. The operation is idempotent - becomes a no-op if the Token is already Paused.

  • 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 TokenPauseTransaction { /* private fields */ }

Implementations§

source§

impl TokenPauseTransaction

source

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

Returns the token to be paused.

source

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

Sets the token to be paused.