Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenWipeAccountTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TokenWipeAccountTransactionBody,TokenWipeAccountTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TokenWipeAccountTransactionBody,TokenWipeAccountTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenWipeAccountTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TokenWipeAccountTransactionBodyOrBuilder,Cloneable
- Enclosing class:
TokenWipeAccountTransactionBody
public static final class TokenWipeAccountTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TokenWipeAccountTransactionBody,TokenWipeAccountTransactionBody.Builder>
implements TokenWipeAccountTransactionBodyOrBuilder
* Wipe (administratively burn) tokens held by a non-treasury account.<br/> On success, the requested tokens will be removed from the identified account and the token supply will be reduced by the amount "wiped". This transaction MUST be signed by the token `wipe_key`.<br/> The identified token MUST exist, MUST NOT be deleted, and MUST NOT be paused.<br/> The identified token MUST have a valid `Key` set for the `wipe_key` field, and that key MUST NOT be an empty `KeyList`.<br/> The identified account MUST exist, MUST NOT be deleted, MUST be associated to the identified token, MUST NOT be frozen for the identified token, MUST NOT be the token `treasury`, and MUST hold a balance for the token or the specific serial numbers provided.<br/> This transaction SHOULD provide a value for `amount` or `serialNumbers`, but MUST NOT set both fields. ### Block Stream Effects The new total supply for the wiped token type SHALL be recorded.Protobuf type
proto.TokenWipeAccountTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllSerialNumbers(Iterable<? extends Long> values) * A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused.addSerialNumbers(long value) * A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused.* An account identifier.<br/> This identifies the account from which tokens will be wiped.* An amount of fungible/common tokens to wipe.* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused.* A token identifier.* An account identifier.<br/> This identifies the account from which tokens will be wiped.long* An amount of fungible/common tokens to wipe.longgetSerialNumbers(int index) * A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused.int* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused.* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused.getToken()* A token identifier.boolean* An account identifier.<br/> This identifies the account from which tokens will be wiped.booleanhasToken()* A token identifier.mergeAccount(AccountID value) * An account identifier.<br/> This identifies the account from which tokens will be wiped.mergeToken(TokenID value) * A token identifier.setAccount(AccountID value) * An account identifier.<br/> This identifies the account from which tokens will be wiped.setAccount(AccountID.Builder builderForValue) * An account identifier.<br/> This identifies the account from which tokens will be wiped.setAmount(long value) * An amount of fungible/common tokens to wipe.setSerialNumbers(int index, long value) * A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused.* A token identifier.setToken(TokenID.Builder builderForValue) * A token identifier.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasToken
public boolean hasToken()* A token identifier. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST NOT be deleted, and MUST NOT be expired.
.proto.TokenID token = 1;- Specified by:
hasTokenin interfaceTokenWipeAccountTransactionBodyOrBuilder- Returns:
- Whether the token field is set.
-
getToken
* A token identifier. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST NOT be deleted, and MUST NOT be expired.
.proto.TokenID token = 1;- Specified by:
getTokenin interfaceTokenWipeAccountTransactionBodyOrBuilder- Returns:
- The token.
-
setToken
* A token identifier. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST NOT be deleted, and MUST NOT be expired.
.proto.TokenID token = 1; -
setToken
* A token identifier. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST NOT be deleted, and MUST NOT be expired.
.proto.TokenID token = 1; -
mergeToken
* A token identifier. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST NOT be deleted, and MUST NOT be expired.
.proto.TokenID token = 1; -
clearToken
* A token identifier. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST NOT be deleted, and MUST NOT be expired.
.proto.TokenID token = 1; -
hasAccount
public boolean hasAccount()* An account identifier.<br/> This identifies the account from which tokens will be wiped. <p> This field is REQUIRED.<br/> The identified account MUST NOT be deleted or expired.<br/> If the identified token `kyc_key` is set to a valid key, the identified account MUST have "KYC" granted.<br/> The identified account MUST NOT be the `treasury` account for the identified token.
.proto.AccountID account = 2;- Specified by:
hasAccountin interfaceTokenWipeAccountTransactionBodyOrBuilder- Returns:
- Whether the account field is set.
-
getAccount
* An account identifier.<br/> This identifies the account from which tokens will be wiped. <p> This field is REQUIRED.<br/> The identified account MUST NOT be deleted or expired.<br/> If the identified token `kyc_key` is set to a valid key, the identified account MUST have "KYC" granted.<br/> The identified account MUST NOT be the `treasury` account for the identified token.
.proto.AccountID account = 2;- Specified by:
getAccountin interfaceTokenWipeAccountTransactionBodyOrBuilder- Returns:
- The account.
-
setAccount
* An account identifier.<br/> This identifies the account from which tokens will be wiped. <p> This field is REQUIRED.<br/> The identified account MUST NOT be deleted or expired.<br/> If the identified token `kyc_key` is set to a valid key, the identified account MUST have "KYC" granted.<br/> The identified account MUST NOT be the `treasury` account for the identified token.
.proto.AccountID account = 2; -
setAccount
* An account identifier.<br/> This identifies the account from which tokens will be wiped. <p> This field is REQUIRED.<br/> The identified account MUST NOT be deleted or expired.<br/> If the identified token `kyc_key` is set to a valid key, the identified account MUST have "KYC" granted.<br/> The identified account MUST NOT be the `treasury` account for the identified token.
.proto.AccountID account = 2; -
mergeAccount
* An account identifier.<br/> This identifies the account from which tokens will be wiped. <p> This field is REQUIRED.<br/> The identified account MUST NOT be deleted or expired.<br/> If the identified token `kyc_key` is set to a valid key, the identified account MUST have "KYC" granted.<br/> The identified account MUST NOT be the `treasury` account for the identified token.
.proto.AccountID account = 2; -
clearAccount
* An account identifier.<br/> This identifies the account from which tokens will be wiped. <p> This field is REQUIRED.<br/> The identified account MUST NOT be deleted or expired.<br/> If the identified token `kyc_key` is set to a valid key, the identified account MUST have "KYC" granted.<br/> The identified account MUST NOT be the `treasury` account for the identified token.
.proto.AccountID account = 2; -
getAmount
public long getAmount()* An amount of fungible/common tokens to wipe. <p> If the identified token is a non-fungible/unique token type, this value MUST be exactly zero(`0`).<br/> If the identified token type is fungible/common: <ul> <li>This value SHALL be specified in units of the smallest denomination possible for the identified token (<tt>10<sup>-decimals</sup></tt> whole tokens).</li> <li>This value MUST be strictly less than `Long.MAX_VALUE`.</li> <li>This value MUST be less than or equal to the current total supply for the identified token.</li> <li>This value MUST be less than or equal to the current balance held by the identified account.</li> <li>This value MAY be zero(`0`).</li> </ul>
uint64 amount = 3;- Specified by:
getAmountin interfaceTokenWipeAccountTransactionBodyOrBuilder- Returns:
- The amount.
-
setAmount
* An amount of fungible/common tokens to wipe. <p> If the identified token is a non-fungible/unique token type, this value MUST be exactly zero(`0`).<br/> If the identified token type is fungible/common: <ul> <li>This value SHALL be specified in units of the smallest denomination possible for the identified token (<tt>10<sup>-decimals</sup></tt> whole tokens).</li> <li>This value MUST be strictly less than `Long.MAX_VALUE`.</li> <li>This value MUST be less than or equal to the current total supply for the identified token.</li> <li>This value MUST be less than or equal to the current balance held by the identified account.</li> <li>This value MAY be zero(`0`).</li> </ul>
uint64 amount = 3;- Parameters:
value- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
* An amount of fungible/common tokens to wipe. <p> If the identified token is a non-fungible/unique token type, this value MUST be exactly zero(`0`).<br/> If the identified token type is fungible/common: <ul> <li>This value SHALL be specified in units of the smallest denomination possible for the identified token (<tt>10<sup>-decimals</sup></tt> whole tokens).</li> <li>This value MUST be strictly less than `Long.MAX_VALUE`.</li> <li>This value MUST be less than or equal to the current total supply for the identified token.</li> <li>This value MUST be less than or equal to the current balance held by the identified account.</li> <li>This value MAY be zero(`0`).</li> </ul>
uint64 amount = 3;- Returns:
- This builder for chaining.
-
getSerialNumbersList
* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused. <p> If the identified token type is a fungible/common type, this list MUST be empty.<br/> If the identified token type is non-fungible/unique: <ul> <li>This list MUST contain at least one entry if the identified token type is non-fungible/unique.>/li> <li>This list MUST NOT contain more entries than the current total supply for the identified token.</li> <li>Every entry in this list MUST be a valid serial number for the identified token (i.e. "collection").</li> <li>Every entry in this list MUST be owned by the identified account</li> <li></li> </ul> This list MUST NOT contain more entries than the network configuration value for batch size limit, typically ten(`10`).
repeated int64 serialNumbers = 4;- Specified by:
getSerialNumbersListin interfaceTokenWipeAccountTransactionBodyOrBuilder- Returns:
- A list containing the serialNumbers.
-
getSerialNumbersCount
public int getSerialNumbersCount()* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused. <p> If the identified token type is a fungible/common type, this list MUST be empty.<br/> If the identified token type is non-fungible/unique: <ul> <li>This list MUST contain at least one entry if the identified token type is non-fungible/unique.>/li> <li>This list MUST NOT contain more entries than the current total supply for the identified token.</li> <li>Every entry in this list MUST be a valid serial number for the identified token (i.e. "collection").</li> <li>Every entry in this list MUST be owned by the identified account</li> <li></li> </ul> This list MUST NOT contain more entries than the network configuration value for batch size limit, typically ten(`10`).
repeated int64 serialNumbers = 4;- Specified by:
getSerialNumbersCountin interfaceTokenWipeAccountTransactionBodyOrBuilder- Returns:
- The count of serialNumbers.
-
getSerialNumbers
public long getSerialNumbers(int index) * A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused. <p> If the identified token type is a fungible/common type, this list MUST be empty.<br/> If the identified token type is non-fungible/unique: <ul> <li>This list MUST contain at least one entry if the identified token type is non-fungible/unique.>/li> <li>This list MUST NOT contain more entries than the current total supply for the identified token.</li> <li>Every entry in this list MUST be a valid serial number for the identified token (i.e. "collection").</li> <li>Every entry in this list MUST be owned by the identified account</li> <li></li> </ul> This list MUST NOT contain more entries than the network configuration value for batch size limit, typically ten(`10`).
repeated int64 serialNumbers = 4;- Specified by:
getSerialNumbersin interfaceTokenWipeAccountTransactionBodyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The serialNumbers at the given index.
-
setSerialNumbers
* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused. <p> If the identified token type is a fungible/common type, this list MUST be empty.<br/> If the identified token type is non-fungible/unique: <ul> <li>This list MUST contain at least one entry if the identified token type is non-fungible/unique.>/li> <li>This list MUST NOT contain more entries than the current total supply for the identified token.</li> <li>Every entry in this list MUST be a valid serial number for the identified token (i.e. "collection").</li> <li>Every entry in this list MUST be owned by the identified account</li> <li></li> </ul> This list MUST NOT contain more entries than the network configuration value for batch size limit, typically ten(`10`).
repeated int64 serialNumbers = 4;- Parameters:
value- The serialNumbers to set.- Returns:
- This builder for chaining.
-
addSerialNumbers
* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused. <p> If the identified token type is a fungible/common type, this list MUST be empty.<br/> If the identified token type is non-fungible/unique: <ul> <li>This list MUST contain at least one entry if the identified token type is non-fungible/unique.>/li> <li>This list MUST NOT contain more entries than the current total supply for the identified token.</li> <li>Every entry in this list MUST be a valid serial number for the identified token (i.e. "collection").</li> <li>Every entry in this list MUST be owned by the identified account</li> <li></li> </ul> This list MUST NOT contain more entries than the network configuration value for batch size limit, typically ten(`10`).
repeated int64 serialNumbers = 4;- Parameters:
value- The serialNumbers to add.- Returns:
- This builder for chaining.
-
addAllSerialNumbers
* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused. <p> If the identified token type is a fungible/common type, this list MUST be empty.<br/> If the identified token type is non-fungible/unique: <ul> <li>This list MUST contain at least one entry if the identified token type is non-fungible/unique.>/li> <li>This list MUST NOT contain more entries than the current total supply for the identified token.</li> <li>Every entry in this list MUST be a valid serial number for the identified token (i.e. "collection").</li> <li>Every entry in this list MUST be owned by the identified account</li> <li></li> </ul> This list MUST NOT contain more entries than the network configuration value for batch size limit, typically ten(`10`).
repeated int64 serialNumbers = 4;- Parameters:
values- The serialNumbers to add.- Returns:
- This builder for chaining.
-
clearSerialNumbers
* A list of serial numbers to wipe.<br/> The non-fungible/unique tokens with these serial numbers will be destroyed and cannot be recovered or reused. <p> If the identified token type is a fungible/common type, this list MUST be empty.<br/> If the identified token type is non-fungible/unique: <ul> <li>This list MUST contain at least one entry if the identified token type is non-fungible/unique.>/li> <li>This list MUST NOT contain more entries than the current total supply for the identified token.</li> <li>Every entry in this list MUST be a valid serial number for the identified token (i.e. "collection").</li> <li>Every entry in this list MUST be owned by the identified account</li> <li></li> </ul> This list MUST NOT contain more entries than the network configuration value for batch size limit, typically ten(`10`).
repeated int64 serialNumbers = 4;- Returns:
- This builder for chaining.
-