Class TokenDeleteTransactionBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TokenDeleteTransactionBody,TokenDeleteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TokenDeleteTransactionBody,TokenDeleteTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenDeleteTransactionBody.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TokenDeleteTransactionBodyOrBuilder, Cloneable
Enclosing class:
TokenDeleteTransactionBody

public static final class TokenDeleteTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenDeleteTransactionBody,TokenDeleteTransactionBody.Builder> implements TokenDeleteTransactionBodyOrBuilder
 *
 Mark a token as deleted.<br/>
 A deleted token remains present in the network state, but is no longer
 active, cannot be held in a balance, and all operations on that token
 fail. A deleted token is removed from network state when it expires.

 #### Operations on a deleted token
 All operations on a deleted token SHALL fail with a
 status code `TOKEN_WAS_DELETED`.<br/>
 Any attempt to transfer a deleted token between accounts SHALL fail with
 a status code `TOKEN_WAS_DELETED`.

 > QUESTIONS
 >> What happens to existing balances/NFTs?
 >> Are these removed; are they stuck on the accounts?
 >
 >> If balances/NFTs remain, can a `tokenReject` remove them?

 #### Requirements
 The `admin_key` for the token MUST be set, and MUST
 sign this transaction.<br/>
 If the `admin_key` for the token is not set, this transaction SHALL
 fail with a status code `TOKEN_IS_IMMUTABlE`.

 ### Block Stream Effects
 None
 
Protobuf type proto.TokenDeleteTransactionBody
  • Method Details

    • hasToken

      public boolean hasToken()
       *
       A token identifier.
       <p>
       This SHALL identify the token type to delete.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token = 1;
      Specified by:
      hasToken in interface TokenDeleteTransactionBodyOrBuilder
      Returns:
      Whether the token field is set.
    • getToken

      public TokenID getToken()
       *
       A token identifier.
       <p>
       This SHALL identify the token type to delete.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token = 1;
      Specified by:
      getToken in interface TokenDeleteTransactionBodyOrBuilder
      Returns:
      The token.
    • setToken

       *
       A token identifier.
       <p>
       This SHALL identify the token type to delete.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token = 1;
    • setToken

      public TokenDeleteTransactionBody.Builder setToken(TokenID.Builder builderForValue)
       *
       A token identifier.
       <p>
       This SHALL identify the token type to delete.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token = 1;
    • mergeToken

      public TokenDeleteTransactionBody.Builder mergeToken(TokenID value)
       *
       A token identifier.
       <p>
       This SHALL identify the token type to delete.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token = 1;
    • clearToken

       *
       A token identifier.
       <p>
       This SHALL identify the token type to delete.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token = 1;