IotaModulesProcessor

Class in @sentio/sdk/iota

Defined in @sentio/sdk/iota

Extends

Constructors

Constructor

new IotaModulesProcessor(name: string, options: IotaBindOptions): IotaModulesProcessor;

Parameters

ParameterType
namestring
optionsIotaBindOptions

Returns

IotaModulesProcessor

Inherited from

IotaBaseProcessor.constructor

Properties

PropertyModifierTypeDefault valueInherited from
callHandlerspublicCallHandler<Data_SuiCall>[][]IotaBaseProcessor.callHandlers
coderpublicMoveCoderundefinedIotaBaseProcessor.coder
configpublicIndexConfigureundefinedIotaBaseProcessor.config
eventHandlerspublicEventHandler<Data_SuiEvent>[][]IotaBaseProcessor.eventHandlers
moduleNamereadonlystringundefinedIotaBaseProcessor.moduleName
objectChangeHandlerspublicObjectChangeHandler<Data_SuiObjectChange>[][]IotaBaseProcessor.objectChangeHandlers

Methods

getChainId()

getChainId(): string;

Returns

string

Inherited from

IotaBaseProcessor.getChainId


onEvent()

onEvent(handler: (event: IotaEvent, ctx: IotaContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, IotaEvent>): this;

Parameters

ParameterType
handler(event: IotaEvent, ctx: IotaContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, IotaEvent>

Returns

this

Inherited from

IotaBaseProcessor.onEvent


onTransactionBlock()

onTransactionBlock(
   handler: (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid, 
   filter?: TransactionFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse>
): this;

Parameters

ParameterType
handler(transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid
filter?TransactionFilter
handlerOptions?HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse>

Returns

this

Inherited from

IotaBaseProcessor.onTransactionBlock


bind()

static bind(options: IotaBindOptions): IotaModulesProcessor;

For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

Parameters

ParameterType
optionsIotaBindOptions

Returns

IotaModulesProcessor

On this page