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
System.Object
TxExecution
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxExecution : object

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

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

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 Source

BlockHash

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

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

ExceptionNames

The list of names thrown by actions in the Transaction. A value of null as an element represents no being thrown for the action of the same index.

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.

| Improve this Doc View Source

Fail

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

Declaration
public bool Fail { get; }
Property Value
Type Description
System.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
System.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
System.Nullable<HashDigest<SHA256>>
Remarks

This is marked null-able for backward compatibility.

| Improve this Doc View Source

TxId

The executed Transaction's Id.

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