Skip to main content

TransactionV1

Namespace: IotaSdk

A transaction

BCS

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

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

Inheritance Object → TransactionV1
Implements ITransactionV1, IEquatable<TransactionV1>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TransactionV1(UInt64)​

public TransactionV1(ulong pointer)

Parameters​

pointer UInt64

TransactionV1(TransactionKind, Address, GasPayment, TransactionExpiration)​

public TransactionV1(TransactionKind kind, Address sender, GasPayment gasPayment, TransactionExpiration expiration)

Parameters​

kind TransactionKind

sender Address

gasPayment GasPayment

expiration TransactionExpiration

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

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(TransactionV1)​

public bool Equals(TransactionV1? other)

Parameters​

other TransactionV1?

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 TransactionV1 FromBase64(string bytes)

Parameters​

bytes String

Returns​

TransactionV1

Exceptions​

SdkFfiException

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static TransactionV1 FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

TransactionV1

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static TransactionV1 FromJson(string json)

Parameters​

json String

Returns​

TransactionV1

Exceptions​

SdkFfiException