IotaGlobalProcessor

Class in @sentio/sdk/iota

Defined in @sentio/sdk/iota

Extends

Constructors

Constructor

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

Parameters

ParameterType
namestring
optionsIotaBindOptions

Returns

IotaGlobalProcessor

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


onObjectChange()

onObjectChange(handler: (changes: IotaObjectChange[], ctx: IotaObjectChangeContext) => void, type: string | string[]): this;

Parameters

ParameterType
handler(changes: IotaObjectChange[], ctx: IotaObjectChangeContext) => void
typestring | string[]

Returns

this

Overrides

IotaBaseProcessor.onObjectChange

onTransactionBlock()

onTransactionBlock(
   handler: (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => void, 
   filter: TransactionFilter, 
   fetchConfig?: Partial<MoveFetchConfig>
): this;

Parameters

ParameterType
handler(transaction: IotaTransactionBlockResponse, ctx: IotaContext) => void
filterTransactionFilter
fetchConfig?Partial<MoveFetchConfig>

Returns

this

Overrides

IotaBaseProcessor.onTransactionBlock


bind()

static bind(options: Omit<IotaBindOptions, "address">): IotaGlobalProcessor;

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
optionsOmit<IotaBindOptions, "address">

Returns

IotaGlobalProcessor

On this page