Class AssetParams

java.lang.Object
com.algorand.algosdk.v2.client.common.PathResponse
com.algorand.algosdk.v2.client.model.AssetParams

public class AssetParams
extends PathResponse
AssetParams specifies the parameters for an asset. (apar) when part of an AssetConfig transaction. Definition: data/transactions/asset.go : AssetParams
  • Field Summary

    Fields
    Modifier and Type Field Description
    java.lang.String clawback
    (c) Address of account used to clawback holdings of this asset.
    java.lang.String creator
    The address that created this asset.
    java.lang.Long decimals
    (dc) The number of digits to use after the decimal point when displaying this asset.
    java.lang.Boolean defaultFrozen
    (df) Whether holdings of this asset are frozen by default.
    java.lang.String freeze
    (f) Address of account used to freeze holdings of this asset.
    java.lang.String manager
    (m) Address of account used to manage the keys of this asset and to destroy it.
    byte[] metadataHash  
    java.lang.String name
    (an) Name of this asset, as supplied by the creator.
    byte[] nameB64  
    java.lang.String reserve
    (r) Address of account holding reserve (non-minted) units of this asset.
    java.math.BigInteger total
    (t) The total number of units of this asset.
    java.lang.String unitName
    (un) Name of a unit of this asset, as supplied by the creator.
    byte[] unitNameB64  
    java.lang.String url
    (au) URL where more information about the asset can be retrieved.
    byte[] urlB64  
  • Constructor Summary

    Constructors
    Constructor Description
    AssetParams()  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    java.lang.String metadataHash()  
    void metadataHash​(java.lang.String base64Encoded)
    (am) A commitment to some unspecified asset metadata.
    java.lang.String nameB64()  
    void nameB64​(java.lang.String base64Encoded)
    Base64 encoded name of this asset, as supplied by the creator.
    java.lang.String unitNameB64()  
    void unitNameB64​(java.lang.String base64Encoded)
    Base64 encoded name of a unit of this asset, as supplied by the creator.
    java.lang.String urlB64()  
    void urlB64​(java.lang.String base64Encoded)
    Base64 encoded URL where more information about the asset can be retrieved.

    Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse

    toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • clawback

      public java.lang.String clawback
      (c) Address of account used to clawback holdings of this asset. If empty, clawback is not permitted.
    • creator

      public java.lang.String creator
      The address that created this asset. This is the address where the parameters for this asset can be found, and also the address where unwanted asset units can be sent in the worst case.
    • decimals

      public java.lang.Long decimals
      (dc) The number of digits to use after the decimal point when displaying this asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in tenths. If 2, the base unit of the asset is in hundredths, and so on. This value must be between 0 and 19 (inclusive).
    • defaultFrozen

      public java.lang.Boolean defaultFrozen
      (df) Whether holdings of this asset are frozen by default.
    • freeze

      public java.lang.String freeze
      (f) Address of account used to freeze holdings of this asset. If empty, freezing is not permitted.
    • manager

      public java.lang.String manager
      (m) Address of account used to manage the keys of this asset and to destroy it.
    • metadataHash

      public byte[] metadataHash
    • name

      public java.lang.String name
      (an) Name of this asset, as supplied by the creator. Included only when the asset name is composed of printable utf-8 characters.
    • nameB64

      public byte[] nameB64
    • reserve

      public java.lang.String reserve
      (r) Address of account holding reserve (non-minted) units of this asset.
    • total

      public java.math.BigInteger total
      (t) The total number of units of this asset.
    • unitName

      public java.lang.String unitName
      (un) Name of a unit of this asset, as supplied by the creator. Included only when the name of a unit of this asset is composed of printable utf-8 characters.
    • unitNameB64

      public byte[] unitNameB64
    • url

      public java.lang.String url
      (au) URL where more information about the asset can be retrieved. Included only when the URL is composed of printable utf-8 characters.
    • urlB64

      public byte[] urlB64
  • Constructor Details

    • AssetParams

      public AssetParams()
  • Method Details

    • metadataHash

      public void metadataHash​(java.lang.String base64Encoded)
      (am) A commitment to some unspecified asset metadata. The format of this metadata is up to the application.
    • metadataHash

      public java.lang.String metadataHash()
    • nameB64

      public void nameB64​(java.lang.String base64Encoded)
      Base64 encoded name of this asset, as supplied by the creator.
    • nameB64

      public java.lang.String nameB64()
    • unitNameB64

      public void unitNameB64​(java.lang.String base64Encoded)
      Base64 encoded name of a unit of this asset, as supplied by the creator.
    • unitNameB64

      public java.lang.String unitNameB64()
    • urlB64

      public void urlB64​(java.lang.String base64Encoded)
      Base64 encoded URL where more information about the asset can be retrieved.
    • urlB64

      public java.lang.String urlB64()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object