Skip to main content

GrpcSimulatedTransaction

Namespace: IotaSdk

The result of simulating a transaction.

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

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

Properties​

Transaction​

The simulated executed transaction.

public GrpcExecutedTransaction? Transaction { get; init; }

Property Value​

GrpcExecutedTransaction

SuggestedGasPrice​

The suggested gas price (in NANOS).

public ulong? SuggestedGasPrice { get; init; }

Property Value​

UInt64?

CommandResults​

The intermediate results/outputs for each command of the transaction, if the simulation succeeded.

public GrpcCommandResult[]? CommandResults { get; init; }

Property Value​

GrpcCommandResult[]

ExecutionError​

The execution error, if the simulation failed.

public GrpcSimulatedExecutionError? ExecutionError { get; init; }

Property Value​

GrpcSimulatedExecutionError

Constructors​

GrpcSimulatedTransaction(GrpcExecutedTransaction, UInt64?, GrpcCommandResult[], GrpcSimulatedExecutionError)​

The result of simulating a transaction.

public GrpcSimulatedTransaction(GrpcExecutedTransaction? Transaction, ulong? SuggestedGasPrice, GrpcCommandResult[]? CommandResults, GrpcSimulatedExecutionError? ExecutionError)

Parameters​

Transaction GrpcExecutedTransaction?
The simulated executed transaction.

SuggestedGasPrice UInt64?
The suggested gas price (in NANOS).

CommandResults GrpcCommandResult[]?
The intermediate results/outputs for each command of the transaction, if the simulation succeeded.

ExecutionError GrpcSimulatedExecutionError?
The execution error, if the simulation failed.

Methods​

Dispose()​

public void Dispose()