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.
Inherited Members
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxExecution
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 | |
Bencodex.Types.IValue | bencoded |
TxExecution(BlockHash, TxId, Boolean, HashDigest<SHA256>, HashDigest<SHA256>, List<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 | |
Boolean | fail | |
HashDigest<SHA256> | inputState | |
HashDigest<SHA256> | outputState | |
List<Exception> | exceptions |
TxExecution(BlockHash, TxId, Boolean, HashDigest<SHA256>, HashDigest<SHA256>, List<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 | |
Boolean | fail | |
HashDigest<SHA256> | inputState | |
HashDigest<SHA256> | outputState | |
List<String> | exceptionNames |
Properties
| Improve this Doc View SourceBlockHash
The Hash of the Block that the Transaction is executed within.
Declaration
[Pure]
public BlockHash BlockHash { get; }
Property Value
Type | Description |
---|---|
BlockHash |
ExceptionNames
The list of Exception names thrown by actions in the Transaction. A value of null as an element represents no Exception being thrown for the action of the same index.
Declaration
public List<string> ExceptionNames { get; }
Property Value
Type | Description |
---|---|
List<String> |
Remarks
This is marked null-able for backward compatibility.
Fail
Whether every action in the Transaction was executed without throwing and Exception.
Declaration
public bool Fail { get; }
Property Value
Type | Description |
---|---|
Boolean |
InputState
The state before the execution of the Transaction.
Declaration
public HashDigest<SHA256>? InputState { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
Nullable<HashDigest<SHA256>> |
Remarks
This is marked null-able for backward compatibility.
TxId
The executed Transaction's Id.
Declaration
[Pure]
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 |
---|---|
Bencodex.Types.IValue |