Skip to main content

TransactionEffectsV1

Namespace: IotaSdk

Version 1 of TransactionEffects

BCS

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

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

Inheritance Object → TransactionEffectsV1
Implements ITransactionEffectsV1, IEquatable<TransactionEffectsV1>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

TransactionEffectsV1(UInt64)​

public TransactionEffectsV1(ulong pointer)

Parameters​

pointer UInt64

TransactionEffectsV1(ExecutionStatus, UInt64, GasCostSummary, TransactionDigest, UInt32?, TransactionEventsDigest, TransactionDigest[], Version, ChangedObject[], UnchangedSharedObject[], EffectsAuxDataDigest)​

public TransactionEffectsV1(ExecutionStatus status, ulong epoch, GasCostSummary gasCostSummary, TransactionDigest transactionDigest, uint? gasObjectIndex, TransactionEventsDigest? eventsDigest, TransactionDigest[] dependencies, Version lamportVersion, ChangedObject[] changedObjects, UnchangedSharedObject[] unchangedSharedObjects, EffectsAuxDataDigest? auxiliaryDataDigest)

Parameters​

status ExecutionStatus

epoch UInt64

gasCostSummary GasCostSummary

transactionDigest TransactionDigest

gasObjectIndex UInt32?

eventsDigest TransactionEventsDigest?

dependencies TransactionDigest[]

lamportVersion Version

changedObjects ChangedObject[]

unchangedSharedObjects UnchangedSharedObject[]

auxiliaryDataDigest EffectsAuxDataDigest?

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

AllChangedObjects()​

Every object still in the store after this transaction, tagged with how it got there.

public ChangedObjectWrite[] AllChangedObjects()

Returns​

ChangedObjectWrite[]

AllRemovedObjects()​

Every object that was in the store before this transaction and is not after it, tagged with why.

public RemovedObject[] AllRemovedObjects()

Returns​

RemovedObject[]

AuxiliaryDataDigest()​

Auxiliary data generated as part of the effects but stored separately.

public EffectsAuxDataDigest? AuxiliaryDataDigest()

Returns​

EffectsAuxDataDigest?

ChangedObjects()​

Objects whose state changed in the object store.

public ChangedObject[] ChangedObjects()

Returns​

ChangedObject[]

Created()​

Objects newly created by this transaction, paired with their owner.

public OwnedObjectReference[] Created()

Returns​

OwnedObjectReference[]

Deleted()​

Objects that existed before this transaction and that it deleted.

public ObjectReference[] Deleted()

Returns​

ObjectReference[]

Dependencies()​

The transactions this one depends on.

public TransactionDigest[] Dependencies()

Returns​

TransactionDigest[]

Epoch()​

The epoch when this transaction was executed.

public ulong Epoch()

Returns​

UInt64

EventsDigest()​

The digest of the events emitted during execution, or None if the transaction emitted none.

public TransactionEventsDigest? EventsDigest()

Returns​

TransactionEventsDigest?

GasCostSummary()​

The gas used by this transaction.

public GasCostSummary GasCostSummary()

Returns​

GasCostSummary

GasObject()​

The post-transaction reference and owner of the gas object, or None for a system transaction, which pays no gas.

public OwnedObjectReference? GasObject()

Returns​

OwnedObjectReference?

GasObjectIndex()​

The updated gas object, as an index into changed_objects. None for a system transaction, which pays no gas.

public uint? GasObjectIndex()

Returns​

UInt32?

InputSharedObjects()​

The shared objects this transaction was sequenced against, whether or not it changed them.

public InputSharedObject[] InputSharedObjects()

Returns​

InputSharedObject[]

LamportVersion()​

The version this transaction assigned to every output object other than packages.

public Version LamportVersion()

Returns​

Version

ModifiedAtVersions()​

The id and pre-transaction version of every object that existed before this transaction and was modified by it.

public ObjectVersion[] ModifiedAtVersions()

Returns​

ObjectVersion[]

Mutated()​

Objects that existed before this transaction and whose contents it updated, at their post-transaction reference and owner.

public OwnedObjectReference[] Mutated()

Returns​

OwnedObjectReference[]

OldObjectMetadata()​

The reference and owner, before this transaction, of every object it modified.

public OwnedObjectReference[] OldObjectMetadata()

Returns​

OwnedObjectReference[]

Status()​

The status of the execution.

public ExecutionStatus Status()

Returns​

ExecutionStatus

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

TransactionDigest()​

The transaction digest.

public TransactionDigest TransactionDigest()

Returns​

TransactionDigest

UnchangedSharedObjects()​

Shared objects this transaction was sequenced against without changing.

public UnchangedSharedObject[] UnchangedSharedObjects()

Returns​

UnchangedSharedObject[]

Unwrapped()​

Objects that were wrapped inside another object before this transaction and that it restored to the store.

public OwnedObjectReference[] Unwrapped()

Returns​

OwnedObjectReference[]

UnwrappedThenDeleted()​

Objects unwrapped and then deleted within this same transaction.

public ObjectReference[] UnwrappedThenDeleted()

Returns​

ObjectReference[]

Wrapped()​

Objects that this transaction wrapped inside another object.

public ObjectReference[] Wrapped()

Returns​

ObjectReference[]

Equals(TransactionEffectsV1)​

public bool Equals(TransactionEffectsV1? other)

Parameters​

other TransactionEffectsV1?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

FromBcs(Byte[])​

Create this type from BCS encoded bytes.

public static TransactionEffectsV1 FromBcs(Byte[] bcs)

Parameters​

bcs Byte[]

Returns​

TransactionEffectsV1

Exceptions​

SdkFfiException

FromJson(String)​

Create this type from a JSON encoded string.

public static TransactionEffectsV1 FromJson(string json)

Parameters​

json String

Returns​

TransactionEffectsV1

Exceptions​

SdkFfiException