Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenMintTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<TokenMintTransactionBody,TokenMintTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<TokenMintTransactionBody,TokenMintTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenMintTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TokenMintTransactionBodyOrBuilder
@Generated
public final class TokenMintTransactionBody
extends com.google.protobuf.GeneratedMessageLite<TokenMintTransactionBody,TokenMintTransactionBody.Builder>
implements TokenMintTransactionBodyOrBuilder
* Mint tokens and deliver the new tokens to the token treasury account. The token MUST have a `supply_key` set and that key MUST NOT be an empty `KeyList`.<br/> The token `supply_key` MUST sign this transaction.<br/> This operation SHALL increase the total supply for the token type by the number of tokens "minted".<br/> The total supply for the token type MUST NOT be increased above the maximum supply limit (2^63-1) by this transaction.<br/> The tokens minted SHALL be credited to the token treasury account.<br/> If the token is a fungible/common type, the amount MUST be specified.<br/> If the token is a non-fungible/unique type, the metadata bytes for each unique token MUST be specified in the `metadata` list.<br/> Each unique metadata MUST not exceed the global metadata size limit defined by the network configuration value `tokens.maxMetadataBytes`.<br/> The global batch size limit (`tokens.nfts.maxBatchSizeMint`) SHALL set the maximum number of individual NFT metadata permitted in a single `tokenMint` transaction. ### Block Stream Effects NoneProtobuf type
proto.TokenMintTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Mint tokens and deliver the new tokens to the token treasury account.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) long* An amount to mint to the Treasury Account.static TokenMintTransactionBodycom.google.protobuf.ByteStringgetMetadata(int index) * A list of metadata bytes.<br/> <p> One non-fungible/unique token SHALL be minted for each entry in this list.<br/> Each entry in this list MUST NOT be larger than the limit set by the current network configuration value `tokens.maxMetadataBytes`.<br/> This list MUST NOT contain more entries than the current limit set by the network configuration value `tokens.nfts.maxBatchSizeMint`.<br/> If this list is not empty, the token MUST be a non-fungible/unique type.<br/> If this list is empty, the token MUST be a fungible/common type.int* A list of metadata bytes.<br/> <p> One non-fungible/unique token SHALL be minted for each entry in this list.<br/> Each entry in this list MUST NOT be larger than the limit set by the current network configuration value `tokens.maxMetadataBytes`.<br/> This list MUST NOT contain more entries than the current limit set by the network configuration value `tokens.nfts.maxBatchSizeMint`.<br/> If this list is not empty, the token MUST be a non-fungible/unique type.<br/> If this list is empty, the token MUST be a fungible/common type.List<com.google.protobuf.ByteString> * A list of metadata bytes.<br/> <p> One non-fungible/unique token SHALL be minted for each entry in this list.<br/> Each entry in this list MUST NOT be larger than the limit set by the current network configuration value `tokens.maxMetadataBytes`.<br/> This list MUST NOT contain more entries than the current limit set by the network configuration value `tokens.nfts.maxBatchSizeMint`.<br/> If this list is not empty, the token MUST be a non-fungible/unique type.<br/> If this list is empty, the token MUST be a fungible/common type.getToken()* A token identifier.booleanhasToken()* A token identifier.newBuilder(TokenMintTransactionBody prototype) static TokenMintTransactionBodyparseDelimitedFrom(InputStream input) static TokenMintTransactionBodyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenMintTransactionBodyparseFrom(byte[] data) static TokenMintTransactionBodyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenMintTransactionBodyparseFrom(com.google.protobuf.ByteString data) static TokenMintTransactionBodyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenMintTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input) static TokenMintTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenMintTransactionBodyparseFrom(InputStream input) static TokenMintTransactionBodyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenMintTransactionBodyparseFrom(ByteBuffer data) static TokenMintTransactionBodyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TokenMintTransactionBody> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
TOKEN_FIELD_NUMBER
public static final int TOKEN_FIELD_NUMBER- See Also:
-
AMOUNT_FIELD_NUMBER
public static final int AMOUNT_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasToken
public boolean hasToken()* A token identifier. <p> This SHALL identify the token type to "mint".<br/> The identified token MUST exist, and MUST NOT be deleted.
.proto.TokenID token = 1;- Specified by:
hasTokenin interfaceTokenMintTransactionBodyOrBuilder- Returns:
- Whether the token field is set.
-
getToken
* A token identifier. <p> This SHALL identify the token type to "mint".<br/> The identified token MUST exist, and MUST NOT be deleted.
.proto.TokenID token = 1;- Specified by:
getTokenin interfaceTokenMintTransactionBodyOrBuilder- Returns:
- The token.
-
getAmount
public long getAmount()* An amount to mint to the Treasury Account. <p> This is interpreted as an amount in the smallest possible denomination for the token (10<sup>-decimals</sup> whole tokens).<br/> The balance for the token treasury account SHALL receive the newly minted tokens.<br/> If this value is equal to zero (`0`), the token SHOULD be a non-fungible/unique type.<br/> If this value is non-zero, the token MUST be a fungible/common type.
uint64 amount = 2;- Specified by:
getAmountin interfaceTokenMintTransactionBodyOrBuilder- Returns:
- The amount.
-
getMetadataList
* A list of metadata bytes.<br/> <p> One non-fungible/unique token SHALL be minted for each entry in this list.<br/> Each entry in this list MUST NOT be larger than the limit set by the current network configuration value `tokens.maxMetadataBytes`.<br/> This list MUST NOT contain more entries than the current limit set by the network configuration value `tokens.nfts.maxBatchSizeMint`.<br/> If this list is not empty, the token MUST be a non-fungible/unique type.<br/> If this list is empty, the token MUST be a fungible/common type.
repeated bytes metadata = 3;- Specified by:
getMetadataListin interfaceTokenMintTransactionBodyOrBuilder- Returns:
- A list containing the metadata.
-
getMetadataCount
public int getMetadataCount()* A list of metadata bytes.<br/> <p> One non-fungible/unique token SHALL be minted for each entry in this list.<br/> Each entry in this list MUST NOT be larger than the limit set by the current network configuration value `tokens.maxMetadataBytes`.<br/> This list MUST NOT contain more entries than the current limit set by the network configuration value `tokens.nfts.maxBatchSizeMint`.<br/> If this list is not empty, the token MUST be a non-fungible/unique type.<br/> If this list is empty, the token MUST be a fungible/common type.
repeated bytes metadata = 3;- Specified by:
getMetadataCountin interfaceTokenMintTransactionBodyOrBuilder- Returns:
- The count of metadata.
-
getMetadata
public com.google.protobuf.ByteString getMetadata(int index) * A list of metadata bytes.<br/> <p> One non-fungible/unique token SHALL be minted for each entry in this list.<br/> Each entry in this list MUST NOT be larger than the limit set by the current network configuration value `tokens.maxMetadataBytes`.<br/> This list MUST NOT contain more entries than the current limit set by the network configuration value `tokens.nfts.maxBatchSizeMint`.<br/> If this list is not empty, the token MUST be a non-fungible/unique type.<br/> If this list is empty, the token MUST be a fungible/common type.
repeated bytes metadata = 3;- Specified by:
getMetadatain interfaceTokenMintTransactionBodyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The metadata at the given index.
-
parseFrom
public static TokenMintTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenMintTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenMintTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenMintTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenMintTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenMintTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TokenMintTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TokenMintTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TokenMintTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TokenMintTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<TokenMintTransactionBody,TokenMintTransactionBody.Builder>
-
getDefaultInstance
-
parser
-