ChangeEpoch
Namespace: IotaSdk
System transaction used to change the epoch
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public class ChangeEpoch : IChangeEpoch, System.IEquatable`1[[IotaSdk.ChangeEpoch, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → ChangeEpoch
Implements IChangeEpoch, IEquatable<ChangeEpoch>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
ChangeEpoch(UInt64)
public ChangeEpoch(ulong pointer)
Parameters
pointer UInt64
ChangeEpoch(UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, UInt64, SystemPackage[])
public ChangeEpoch(ulong epoch, ulong protocolVersion, ulong storageCharge, ulong computationCharge, ulong storageRebate, ulong nonRefundableStorageFee, ulong epochStartTimestampMs, SystemPackage[] systemPackages)
Parameters
epoch UInt64
protocolVersion UInt64
storageCharge UInt64
computationCharge UInt64
storageRebate UInt64
nonRefundableStorageFee UInt64
epochStartTimestampMs UInt64
systemPackages SystemPackage[]
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
ComputationCharge()
The total amount of gas charged for computation during the epoch.
public ulong ComputationCharge()
Returns
Epoch()
The next (to become) epoch ID.
public ulong Epoch()
Returns
EpochStartTimestampMs()
Unix timestamp when epoch started
public ulong EpochStartTimestampMs()
Returns
NonRefundableStorageFee()
The non-refundable storage fee.
public ulong NonRefundableStorageFee()
Returns
ProtocolVersion()
The protocol version in effect in the new epoch.
public ulong ProtocolVersion()
Returns
StorageCharge()
The total amount of gas charged for storage during the epoch.
public ulong StorageCharge()
Returns
StorageRebate()
The amount of storage rebate refunded to the txn senders.
public ulong StorageRebate()
Returns
SystemPackages()
System packages (specifically framework and move stdlib) that are written before the new epoch starts.
public SystemPackage[] SystemPackages()
Returns
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()
Returns
Exceptions
Equals(ChangeEpoch)
public bool Equals(ChangeEpoch? other)
Parameters
other ChangeEpoch?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
FromBcs(Byte[])
Create this type from BCS encoded bytes.
public static ChangeEpoch FromBcs(Byte[] bcs)
Parameters
bcs Byte[]
Returns
Exceptions
FromJson(String)
Create this type from a JSON encoded string.
public static ChangeEpoch FromJson(string json)
Parameters
json String