Skip to main content

GrpcExecutedTransactionResults

Namespace: IotaSdk

The results of a batch of transactions, in request order. Each item is either the transaction or the error the server reported for it.

Read items by position with get, or in order with has_next and next. An item's error does not end the iteration: next throws it and the following call moves on to the next item. Items can be read any number of times.

public class GrpcExecutedTransactionResults : IGrpcExecutedTransactionResults, System.IDisposable

Inheritance Object → GrpcExecutedTransactionResults
Implements IGrpcExecutedTransactionResults, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

GrpcExecutedTransactionResults(UInt64)​

public GrpcExecutedTransactionResults(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

Get(UInt64)​

The item at index, or an error carrying the message the server reported for it. Errors if index is out of range.

public GrpcExecutedTransaction Get(ulong index)

Parameters​

index UInt64

Returns​

GrpcExecutedTransaction

Exceptions​

SdkFfiException

HasNext()​

Whether next has an item left to return.

public bool HasNext()

Returns​

Boolean

IsEmpty()​

Whether there are no items.

public bool IsEmpty()

Returns​

Boolean

Len()​

The number of items.

public ulong Len()

Returns​

UInt64

Next()​

The next item, or an error carrying the message the server reported for it. Errors once every item has been returned.

has_next followed by next is not atomic: when several threads share the results, next can error as exhausted after has_next returned true.

public GrpcExecutedTransaction Next()

Returns​

GrpcExecutedTransaction

Exceptions​

SdkFfiException