Class TxExecution
Summarizes an execution result of a Transaction.
Note that Transactions cannot be executed without belonging to a Block, and even if it's the same Transaction its result can vary depending on Block that it is executed within.
Inheritance
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxExecution : object
Constructors
| Improve this Doc View SourceTxExecution(BlockHash, TxId, IValue)
Summarizes an execution result of a Transaction.
Note that Transactions cannot be executed without belonging to a Block, and even if it's the same Transaction its result can vary depending on Block that it is executed within.
Declaration
public TxExecution(BlockHash blockHash, TxId txId, IValue bencoded)
Parameters
Type | Name | Description |
---|---|---|
BlockHash | blockHash | |
TxId | txId | |
IValue | bencoded |
TxExecution(BlockHash, TxId, Boolean, HashDigest<SHA256>, HashDigest<SHA256>, List<Nullable<Exception>>)
Summarizes an execution result of a Transaction.
Note that Transactions cannot be executed without belonging to a Block, and even if it's the same Transaction its result can vary depending on Block that it is executed within.
Declaration
public TxExecution(BlockHash blockHash, TxId txId, bool fail, HashDigest<SHA256> inputState, HashDigest<SHA256> outputState, List<Exception?> exceptions)
Parameters
Type | Name | Description |
---|---|---|
BlockHash | blockHash | |
TxId | txId | |
System.Boolean | fail | |
HashDigest<SHA256> | inputState | |
HashDigest<SHA256> | outputState | |
List<System.Nullable<Exception>> | exceptions |
TxExecution(BlockHash, TxId, Boolean, HashDigest<SHA256>, HashDigest<SHA256>, List<Nullable<String>>)
Summarizes an execution result of a Transaction.
Note that Transactions cannot be executed without belonging to a Block, and even if it's the same Transaction its result can vary depending on Block that it is executed within.
Declaration
public TxExecution(BlockHash blockHash, TxId txId, bool fail, HashDigest<SHA256> inputState, HashDigest<SHA256> outputState, List<string?> exceptionNames)
Parameters
Type | Name | Description |
---|---|---|
BlockHash | blockHash | |
TxId | txId | |
System.Boolean | fail | |
HashDigest<SHA256> | inputState | |
HashDigest<SHA256> | outputState | |
List<System.Nullable<System.String>> | exceptionNames |
Properties
| Improve this Doc View SourceBlockHash
The Hash of the Block that the Transaction is executed within.
Declaration
public BlockHash BlockHash { get; }
Property Value
Type | Description |
---|---|
BlockHash |
ExceptionNames
The list of
Declaration
public List<string?>? ExceptionNames { get; }
Property Value
Type | Description |
---|---|
System.Nullable<List<System.Nullable<System.String>>> |
Remarks
This is marked null-able for backward compatibility.
Fail
Whether every action in the Transaction was
executed without throwing and
Declaration
public bool Fail { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
InputState
The state before the execution of the Transaction.
Declaration
public HashDigest<SHA256>? InputState { get; }
Property Value
Type | Description |
---|---|
System.Nullable<HashDigest<SHA256>> |
Remarks
This is marked null-able for backward compatibility.
OutputState
The state after the execution of the Transaction.
Declaration
public HashDigest<SHA256>? OutputState { get; }
Property Value
Type | Description |
---|---|
System.Nullable<HashDigest<SHA256>> |
Remarks
This is marked null-able for backward compatibility.
TxId
The executed Transaction's Id.
Declaration
public TxId TxId { get; }
Property Value
Type | Description |
---|---|
TxId |
Methods
| Improve this Doc View SourceToBencodex()
Summarizes an execution result of a Transaction.
Note that Transactions cannot be executed without belonging to a Block, and even if it's the same Transaction its result can vary depending on Block that it is executed within.
Declaration
public IValue ToBencodex()
Returns
Type | Description |
---|---|
IValue |