Skip to main content

TransactionKind

Namespace: IotaSdk

Transaction type

BCS

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

public class TransactionKind : ITransactionKind, System.IEquatable`1[[IotaSdk.TransactionKind, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance Object → TransactionKind
Implements ITransactionKind, IEquatable<TransactionKind>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TransactionKind(UInt64)​

public TransactionKind(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

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.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException

ToString()​

public override string ToString()

Returns​

String

Equals(TransactionKind)​

public bool Equals(TransactionKind? other)

Parameters​

other TransactionKind?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

GetHashCode()​

public override int GetHashCode()

Returns​

Int32

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static TransactionKind FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

TransactionKind

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static TransactionKind FromJson(string json)

Parameters​

json String

Returns​

TransactionKind

Exceptions​

SdkFfiException

NewConsensusCommitPrologueV1(ConsensusCommitPrologueV1)​

Create a TransactionKind for a consensus-commit-prologue-v1 transaction.

public static TransactionKind NewConsensusCommitPrologueV1(ConsensusCommitPrologueV1 transaction)

Parameters​

transaction ConsensusCommitPrologueV1

Returns​

TransactionKind

NewEndOfEpoch(EndOfEpochTransactionKind[])​

Create a TransactionKind for an end-of-epoch transaction.

public static TransactionKind NewEndOfEpoch(EndOfEpochTransactionKind[] transaction)

Parameters​

transaction EndOfEpochTransactionKind[]

Returns​

TransactionKind

NewGenesis(GenesisTransaction)​

Create a TransactionKind for a genesis transaction.

public static TransactionKind NewGenesis(GenesisTransaction transaction)

Parameters​

transaction GenesisTransaction

Returns​

TransactionKind

NewProgrammable(ProgrammableTransaction)​

Create a TransactionKind for a programmable transaction.

public static TransactionKind NewProgrammable(ProgrammableTransaction transaction)

Parameters​

transaction ProgrammableTransaction

Returns​

TransactionKind

NewRandomnessStateUpdate(RandomnessStateUpdate)​

Create a TransactionKind for a randomness-state-update transaction.

public static TransactionKind NewRandomnessStateUpdate(RandomnessStateUpdate transaction)

Parameters​

transaction RandomnessStateUpdate

Returns​

TransactionKind

NewTransactionDenyRulesUpdate(TransactionDenyRulesUpdate)​

Create a TransactionKind for a transaction-deny-rules-update transaction.

public static TransactionKind NewTransactionDenyRulesUpdate(TransactionDenyRulesUpdate transaction)

Parameters​

transaction TransactionDenyRulesUpdate

Returns​

TransactionKind