GrpcSimulatedTransaction
GrpcSimulatedTransaction
struct GrpcSimulatedTransaction
The result of simulating a transaction.
init(transaction:suggestedGasPrice:commandResults:executionError:)
init(transaction: GrpcExecutedTransaction?, suggestedGasPrice: UInt64?, commandResults: [GrpcCommandResult]?, executionError: GrpcSimulatedExecutionError?)
commandResults
var commandResults: [GrpcCommandResult]?
The intermediate results/outputs for each command of the transaction, if the simulation succeeded.
executionError
var executionError: GrpcSimulatedExecutionError?
The execution error, if the simulation failed.
suggestedGasPrice
var suggestedGasPrice: UInt64?
The suggested gas price (in NANOS).
transaction
var transaction: GrpcExecutedTransaction?
The simulated executed transaction.