Show / Hide Table of Contents

    Class AssetParams

    AssetParams

    Inheritance
    System.Object
    AssetParams
    Implements
    System.IEquatable<AssetParams>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Algorand.Algod.Model
    Assembly: Algorand.dll
    Syntax
    [DataContract]
    public class AssetParams : IEquatable<AssetParams>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    AssetParams(String, String, String, Nullable<Boolean>, String, String, String, String, Nullable<UInt64>, String, String)

    Initializes a new instance of the AssetParams class.

    Declaration
    public AssetParams(string assetname = null, string clawbackaddr = null, string creator = null, bool? defaultfrozen = default(bool? ), string freezeaddr = null, string managerkey = null, string metadatahash = null, string reserveaddr = null, ulong? total = default(ulong? ), string unitname = null, string url = null)
    Parameters
    Type Name Description
    System.String assetname

    AssetName specifies the name of this asset, as supplied by the creator..

    System.String clawbackaddr

    ClawbackAddr specifies the address used to clawback holdings of this asset. If empty, clawback is not permitted..

    System.String creator

    Creator specifies 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. (required).

    System.Nullable<System.Boolean> defaultfrozen

    DefaultFrozen specifies whether holdings in this asset are frozen by default..

    System.String freezeaddr

    FreezeAddr specifies the address used to freeze holdings of this asset. If empty, freezing is not permitted..

    System.String managerkey

    ManagerAddr specifies the address used to manage the keys of this asset and to destroy it..

    System.String metadatahash

    MetadataHash specifies a commitment to some unspecified asset metadata. The format of this metadata is up to the application..

    System.String reserveaddr

    ReserveAddr specifies the address holding reserve (non-minted) units of this asset..

    System.Nullable<System.UInt64> total

    Total specifies the total number of units of this asset. (required).

    System.String unitname

    UnitName specifies the name of a unit of this asset, as supplied by the creator..

    System.String url

    URL specifies a URL where more information about the asset can be retrieved.

    Properties

    | Improve this Doc View Source

    Assetname

    AssetName specifies the name of this asset, as supplied by the creator.

    Declaration
    [DataMember(Name = "assetname", EmitDefaultValue = false)]
    public string Assetname { get; set; }
    Property Value
    Type Description
    System.String

    AssetName specifies the name of this asset, as supplied by the creator.

    | Improve this Doc View Source

    Clawbackaddr

    ClawbackAddr specifies the address used to clawback holdings of this asset. If empty, clawback is not permitted.

    Declaration
    [DataMember(Name = "clawbackaddr", EmitDefaultValue = false)]
    public string Clawbackaddr { get; set; }
    Property Value
    Type Description
    System.String

    ClawbackAddr specifies the address used to clawback holdings of this asset. If empty, clawback is not permitted.

    | Improve this Doc View Source

    Creator

    Creator specifies 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.

    Declaration
    [DataMember(Name = "creator", EmitDefaultValue = false)]
    public string Creator { get; set; }
    Property Value
    Type Description
    System.String

    Creator specifies 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.

    | Improve this Doc View Source

    Defaultfrozen

    DefaultFrozen specifies whether holdings in this asset are frozen by default.

    Declaration
    [DataMember(Name = "defaultfrozen", EmitDefaultValue = false)]
    public bool? Defaultfrozen { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    DefaultFrozen specifies whether holdings in this asset are frozen by default.

    | Improve this Doc View Source

    Freezeaddr

    FreezeAddr specifies the address used to freeze holdings of this asset. If empty, freezing is not permitted.

    Declaration
    [DataMember(Name = "freezeaddr", EmitDefaultValue = false)]
    public string Freezeaddr { get; set; }
    Property Value
    Type Description
    System.String

    FreezeAddr specifies the address used to freeze holdings of this asset. If empty, freezing is not permitted.

    | Improve this Doc View Source

    Managerkey

    ManagerAddr specifies the address used to manage the keys of this asset and to destroy it.

    Declaration
    [DataMember(Name = "managerkey", EmitDefaultValue = false)]
    public string Managerkey { get; set; }
    Property Value
    Type Description
    System.String

    ManagerAddr specifies the address used to manage the keys of this asset and to destroy it.

    | Improve this Doc View Source

    Metadatahash

    MetadataHash specifies a commitment to some unspecified asset metadata. The format of this metadata is up to the application.

    Declaration
    [DataMember(Name = "metadatahash", EmitDefaultValue = false)]
    public string Metadatahash { get; set; }
    Property Value
    Type Description
    System.String

    MetadataHash specifies a commitment to some unspecified asset metadata. The format of this metadata is up to the application.

    | Improve this Doc View Source

    Reserveaddr

    ReserveAddr specifies the address holding reserve (non-minted) units of this asset.

    Declaration
    [DataMember(Name = "reserveaddr", EmitDefaultValue = false)]
    public string Reserveaddr { get; set; }
    Property Value
    Type Description
    System.String

    ReserveAddr specifies the address holding reserve (non-minted) units of this asset.

    | Improve this Doc View Source

    Total

    Total specifies the total number of units of this asset.

    Declaration
    [DataMember(Name = "total", EmitDefaultValue = false)]
    public ulong? Total { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    Total specifies the total number of units of this asset.

    | Improve this Doc View Source

    Unitname

    UnitName specifies the name of a unit of this asset, as supplied by the creator.

    Declaration
    [DataMember(Name = "unitname", EmitDefaultValue = false)]
    public string Unitname { get; set; }
    Property Value
    Type Description
    System.String

    UnitName specifies the name of a unit of this asset, as supplied by the creator.

    | Improve this Doc View Source

    Url

    URL specifies a URL where more information about the asset can be retrieved

    Declaration
    [DataMember(Name = "url", EmitDefaultValue = false)]
    public string Url { get; set; }
    Property Value
    Type Description
    System.String

    URL specifies a URL where more information about the asset can be retrieved

    Methods

    | Improve this Doc View Source

    Equals(AssetParams)

    Returns true if AssetParams instances are equal

    Declaration
    public bool Equals(AssetParams input)
    Parameters
    Type Name Description
    AssetParams input

    Instance of AssetParams to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    | Improve this Doc View Source

    Equals(Object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    System.Object input

    Object to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Hash code

    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    System.String

    JSON string presentation of the object

    | Improve this Doc View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String presentation of the object

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IValidatableObject.Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext

    Validation context

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX