Show / Hide Table of Contents

Interface ICommittedActionContext

Contextual data determined by a transaction and a block for rendering.

Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public interface ICommittedActionContext

Properties

| Improve this Doc View Source

BlockAction

Whether this action is executed as a block action. false if it belongs to a transaction.

Declaration
[Pure]
bool BlockAction { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

BlockIndex

The Index of the Block that contains the IAction.

Declaration
[Pure]
long BlockIndex { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

BlockProtocolVersion

The ProtocolVersion of the Block that contains the IAction.

Declaration
[Pure]
int BlockProtocolVersion { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Miner

The Miner of the Block that contains the IAction.

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

PreviousState

The state root hash of the previous state.

Declaration
[Pure]
HashDigest<SHA256> PreviousState { get; }
Property Value
Type Description
HashDigest<SHA256>
| Improve this Doc View Source

RandomSeed

The random seed to use for pseudorandom number generator. This value is determined by various block properties, the signature of the transaction containing the action to execute, and index of the action to execute, which is deterministic so that every node can replay the same action and then reproduce the same result, while neither a single block miner nor a single transaction signer can predict the result and cheat.

Declaration
int RandomSeed { get; }
Property Value
Type Description
Int32
See Also
GetRandom()
| Improve this Doc View Source

Signer

The Signer of the Transaction that contains the IAction to be executed. If the IAction is not part of a Transaction, e.g. , this is set to Miner instead.

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

TxId

The Id of the Transaction that contains the IAction. If the IAction is not part of a Transaction, e.g. , this is set to null.

Declaration
[Pure]
TxId? TxId { get; }
Property Value
Type Description
Nullable<TxId>

Methods

| Improve this Doc View Source

GetRandom()

Returns a newly initialized IRandom using RandomSeed as its seed value.

Declaration
[Pure]
IRandom GetRandom()
Returns
Type Description
IRandom

A newly initialized IRandom using RandomSeed as its seed value.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium