Skip to main content

IVersion

Namespace: IotaSdk

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

public interface IVersion

Attributes NullableContextAttribute

Methods​

AsU64()​

Get the underlying u64 value of this version

ulong AsU64()

Returns​

UInt64

GetCongestedVersionSuggestedGasPrice()​

Returns the suggested_gas_price embedded in this congested shared object version. The suggested_gas_price here is used for a gas price feedback mechanism for transactions canceled due to shared object congestion.

ulong GetCongestedVersionSuggestedGasPrice()

Returns​

UInt64

Exceptions​

SdkFfiException

IsCanceled()​

Checks if this version is canceled, i.e., the corresponding object appears in a canceled transaction.

bool IsCanceled()

Returns​

Boolean

IsCongested()​

Check if this version is congested, i.e., the corresponding object is the reason for transaction cancellation.

bool IsCongested()

Returns​

Boolean

IsValid()​

Checks if this version is valid, i.e., the corresponding object does not appear in a canceled transaction.

bool IsValid()

Returns​

Boolean

Next()​

Returns the next version, or an error if overflow occurs.

Version Next()

Returns​

Version

Exceptions​

SdkFfiException

Previous()​

Returns the previous version, or an error if underflow occurs.

Version Previous()

Returns​

Version

Exceptions​

SdkFfiException

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.

string ToDisplayString()

Returns​

String