Class AssetParams
AssetParams
Inheritance
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class AssetParams : IEquatable<AssetParams>, IValidatableObject
Constructors
| Improve this Doc View SourceAssetParams(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 SourceAssetname
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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 SourceEquals(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 |
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
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
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 |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.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 |