Interface NfTokenMint

All Superinterfaces:
Transaction
All Known Implementing Classes:
ImmutableNfTokenMint

@Immutable public interface NfTokenMint extends Transaction
The NfTokenMint transaction creates an NfToken object and adds it to the relevant NfTokenPage object of the minter(issuer). If the transaction is successful, the newly minted token will be owned by the minter(issuer) account specified by the transaction.
  • Method Details

    • builder

      static ImmutableNfTokenMint.Builder builder()
      Construct a builder for this class.
      Returns:
      An ImmutableNfTokenMint.Builder.
    • tokenTaxon

      com.google.common.primitives.UnsignedLong tokenTaxon()
      Indicates the taxon associated with this token. The taxon is generally a value chosen by the minter of the token and a given taxon may be used for multiple tokens. The implementation reserves taxon identifiers greater than or equal to 2147483648 (0x80000000).
      Returns:
      Taxon of type UnsignedLong associated with the Token.
    • issuer

      Optional<Address> issuer()
      Indicates the account that should be the issuer of this token. This value is optional and should only be specified if the account executing the transaction is not the Issuer of the `NfToken` object. If it is present, the MintAccount field in the AccountRoot of the `Issuer` field must match the `Account`, otherwise the transaction will fail.
      Returns:
      An Optional field Issuer of type Address.
    • transferFee

      Optional<TransferFee> transferFee()
      Specifies the fee charged by the issuer for secondary sales of the Token, if such sales are allowed. Valid values for this field are between 0 and 50000 inclusive, allowing transfer rates between 0.000% and 50.000% in increments of 0.001%. This field must NOT be present if the `tfTransferable` flag is not set.
      Returns:
      An Optional TransferFee.
    • uri

      URI that points to the data and/or metadata associated with the NfT. This field need not be an HTTP or HTTPS URL; it could be an IPFS URI, a magnet link, immediate data encoded as an RFC2379 "data" URL, or even an opaque issuer-specific encoding. The URI is NOT checked for validity, but the field is limited to a maximum length of 256 bytes.
      Returns:
      An Optional field URI of type String.
    • flags

      @Default default NfTokenMintFlags flags()
      Set of NfTokenMintFlagss for this NfTokenMint.
      Returns:
      The NfTokenMintFlags for this transaction.