Class TransactionParametersResponse
TransactionParams contains the parameters that help a client construct a new transaction.
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class TransactionParametersResponse : IEquatable<TransactionParametersResponse>, IValidatableObject
Constructors
| Improve this Doc View SourceTransactionParametersResponse()
Initializes a new instance of the TransactionParametersResponse class.
Declaration
[JsonConstructor]
protected TransactionParametersResponse()
TransactionParametersResponse(String, Nullable<Int64>, Byte[], String, Nullable<Int64>, Nullable<Int64>)
Initializes a new instance of the TransactionParametersResponse class.
Declaration
public TransactionParametersResponse(string consensusVersion = null, long? fee = default(long? ), byte[] genesisHash = null, string genesisId = null, long? lastRound = default(long? ), long? minFee = default(long? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | consensusVersion | ConsensusVersion indicates the consensus protocol version as of LastRound. (required). |
System.Nullable<System.Int64> | fee | Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol. (required). |
System.Byte[] | genesisHash | GenesisHash is the hash of the genesis block. (required). |
System.String | genesisId | GenesisID is an ID listed in the genesis block. (required). |
System.Nullable<System.Int64> | lastRound | LastRound indicates the last round seen (required). |
System.Nullable<System.Int64> | minFee | The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol. (required). |
Properties
| Improve this Doc View SourceConsensusVersion
ConsensusVersion indicates the consensus protocol version as of LastRound.
Declaration
[DataMember(Name = "consensus-version", EmitDefaultValue = false)]
public string ConsensusVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String | ConsensusVersion indicates the consensus protocol version as of LastRound. |
Fee
Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol.
Declaration
[DataMember(Name = "fee", EmitDefaultValue = false)]
public long? Fee { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol. |
GenesisHash
GenesisHash is the hash of the genesis block.
Declaration
[DataMember(Name = "genesis-hash", EmitDefaultValue = false)]
public byte[] GenesisHash { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] | GenesisHash is the hash of the genesis block. |
GenesisId
GenesisID is an ID listed in the genesis block.
Declaration
[DataMember(Name = "genesis-id", EmitDefaultValue = false)]
public string GenesisId { get; set; }
Property Value
Type | Description |
---|---|
System.String | GenesisID is an ID listed in the genesis block. |
LastRound
LastRound indicates the last round seen
Declaration
[DataMember(Name = "last-round", EmitDefaultValue = false)]
public long? LastRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | LastRound indicates the last round seen |
MinFee
The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol.
Declaration
[DataMember(Name = "min-fee", EmitDefaultValue = false)]
public long? MinFee { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol. |
Methods
| Improve this Doc View SourceEquals(TransactionParametersResponse)
Returns true if TransactionParametersResponse instances are equal
Declaration
public bool Equals(TransactionParametersResponse input)
Parameters
Type | Name | Description |
---|---|---|
TransactionParametersResponse | input | Instance of TransactionParametersResponse 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 |