IotaAddressProcessorTemplate

Class in @sentio/sdk/iota

Defined in @sentio/sdk/iota

Extends

Constructors

Constructor

new IotaAddressProcessorTemplate(): IotaAddressProcessorTemplate;

Returns

IotaAddressProcessorTemplate

Inherited from

IotaObjectOrAddressProcessorTemplate<
  (objects: IotaMoveObject[], ctx: IotaAddressContext) => PromiseOrVoid,
  IotaBindOptions,
  IotaAddressProcessor
>.constructor

Properties

PropertyTypeDefault valueInherited from
idnumberundefinedIotaObjectProcessorTemplate.id
instancesSet<string>undefinedIotaObjectProcessorTemplate.instances
objectHandlersObjectHandler<(objects: object[], ctx: IotaAddressContext) => PromiseOrVoid>[][]IotaObjectOrAddressProcessorTemplate.objectHandlers

Methods

bind()

bind(options: IotaBindOptions, ctx: IotaContext): void;

Parameters

ParameterType
optionsIotaBindOptions
ctxIotaContext

Returns

void

Inherited from

IotaObjectOrAddressProcessorTemplate.bind

createProcessor()

createProcessor(options: IotaBindOptions): IotaAddressProcessor;

Parameters

ParameterType
optionsIotaBindOptions

Returns

IotaAddressProcessor

Overrides

IotaObjectOrAddressProcessorTemplate.createProcessor

onCheckpointInterval()

onCheckpointInterval(
   handler: (objects: object[], ctx: IotaAddressContext) => PromiseOrVoid, 
   checkpointInterval?: number, 
   backfillCheckpointInterval?: number, 
   type?: string, 
   fetchConfig?: Partial<MoveAccountFetchConfig>
): this;

Parameters

ParameterTypeDefault value
handler(objects: object[], ctx: IotaAddressContext) => PromiseOrVoidundefined
checkpointIntervalnumber100000
backfillCheckpointIntervalnumber400000
type?stringundefined
fetchConfig?Partial<MoveAccountFetchConfig>undefined

Returns

this

Inherited from

IotaObjectOrAddressProcessorTemplate.onCheckpointInterval

onTimeInterval()

onTimeInterval(
   handler: (objects: object[], ctx: IotaAddressContext) => PromiseOrVoid, 
   timeIntervalInMinutes?: number, 
   backfillTimeIntervalInMinutes?: number, 
   type?: string, 
   fetchConfig?: Partial<MoveAccountFetchConfig>
): this;

Parameters

ParameterTypeDefault value
handler(objects: object[], ctx: IotaAddressContext) => PromiseOrVoidundefined
timeIntervalInMinutesnumber60
backfillTimeIntervalInMinutesnumber240
type?stringundefined
fetchConfig?Partial<MoveAccountFetchConfig>undefined

Returns

this

Inherited from

IotaObjectOrAddressProcessorTemplate.onTimeInterval

onTransactionBlock()

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

Parameters

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

Returns

this


startInstance()

startInstance(options: IotaBindOptions, ctx: IotaContext): void;

Parameters

ParameterType
optionsIotaBindOptions
ctxIotaContext

Returns

void

Inherited from

IotaObjectOrAddressProcessorTemplate.startInstance

unbind()

unbind(options: IotaBindOptions, ctx: IotaContext): void;

Parameters

ParameterType
optionsIotaBindOptions
ctxIotaContext

Returns

void

Inherited from

IotaObjectOrAddressProcessorTemplate.unbind

On this page