Type Alias hedera::TokenDeleteTransaction

source ·
pub type TokenDeleteTransaction = Transaction<TokenDeleteTransactionData>;
Expand description

Marks a token as deleted, though it will remain in the ledger.

The operation must be signed by the specified Admin Key of the Token.

Once deleted update, mint, burn, wipe, freeze, unfreeze, grant kyc, revoke kyc and token transfer transactions will resolve to TOKEN_WAS_DELETED.

  • If admin key is not set, Transaction will result in TOKEN_IS_IMMUTABlE.
  • If invalid token is specified, transaction will result in INVALID_TOKEN_ID

Aliased Type§

struct TokenDeleteTransaction { /* private fields */ }

Implementations§

source§

impl TokenDeleteTransaction

source

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

Returns the token to be deleted.

source

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

Sets the token to be deleted.