Show / Hide Table of Contents

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
Object
TxExecution
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxExecution

Constructors

| Improve this Doc View Source

TxExecution(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

BlockHash

The Hash of the Block that the Transaction is executed within.

Declaration
[Pure]
public BlockHash BlockHash { get; }
Property Value
Type Description
BlockHash
| Improve this Doc View Source

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.

| Improve this Doc View Source

Fail

Whether every action in the Transaction was executed without throwing and Exception.

Declaration
public bool Fail { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

TxId

The executed Transaction's Id.

Declaration
[Pure]
public TxId TxId { get; }
Property Value
Type Description
TxId

Methods

| Improve this Doc View Source

ToBencodex()

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
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium