Skip to main content

Transaction

Namespace: IotaSdk

Transaction

BCS

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

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

Inheritance Object → Transaction
Implements ITransaction, IEquatable<Transaction>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

Transaction(UInt64)​

public Transaction(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

AsV1()​

public TransactionV1 AsV1()

Returns​

TransactionV1

Digest()​

public TransactionDigest Digest()

Returns​

TransactionDigest

Expiration()​

public TransactionExpiration Expiration()

Returns​

TransactionExpiration

GasPayment()​

public GasPayment GasPayment()

Returns​

GasPayment

Kind()​

public TransactionKind Kind()

Returns​

TransactionKind

Sender()​

public Address Sender()

Returns​

Address

SigningDigest()​

Get the signing digest.

public Byte[] SigningDigest()

Returns​

Byte[]

SigningDigestHex()​

Get the signing digest as a hex string.

public string SigningDigestHex()

Returns​

String

ToBase64()​

Serialize the transaction as a base64-encoded string.

public string ToBase64()

Returns​

String

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

Equals(Transaction)​

public bool Equals(Transaction? other)

Parameters​

other Transaction?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

FromBase64(String)​

Deserialize a transaction from a base64-encoded string.

public static Transaction FromBase64(string base64)

Parameters​

base64 String

Returns​

Transaction

Exceptions​

SdkFfiException

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static Transaction FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

Transaction

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static Transaction FromJson(string json)

Parameters​

json String

Returns​

Transaction

Exceptions​

SdkFfiException

NewV1(TransactionV1)​

public static Transaction NewV1(TransactionV1 transactionV1)

Parameters​

transactionV1 TransactionV1

Returns​

Transaction