Interface CommandExecuteContext<T>

Context for the command execution.

Type Parameters

  • T = undefined


  • CommandExecuteContext


assets: BlockAssets

The block assets.

chainID: Buffer

The identifier of the blockchain network, in which this command is executed.

contextStore: Map<string, unknown>


eventQueue: EventQueue

Event interface to ad blockchain events to the event queue.

getMethodContext: (() => MethodContext)

Type declaration

getStore: ((moduleID: Buffer, storePrefix: Buffer) => SubStore)

Type declaration

    • (moduleID: Buffer, storePrefix: Buffer): SubStore
    • State store interface to get data from the module stores.


      • moduleID: Buffer
      • storePrefix: Buffer

      Returns SubStore

header: BlockHeader

The block header.

logger: Logger

Logger interface, to create log messages.

params: T

The command-specific parameters.

stateStore: StateStore

State store interface.

transaction: Transaction

The transaction to execute.

Generated using TypeDoc