IotaAddressProcessor

Class in @sentio/sdk/iota

Defined in @sentio/sdk/iota

Extends

Properties

PropertyTypeDefault valueInherited from
callHandlersCallHandler<Data_SuiCall>[][]-
configIndexConfigureundefinedIotaObjectProcessor.config
objectChangeHandlersObjectChangeHandler<Data_SuiObjectChange>[][]IotaObjectProcessor.objectChangeHandlers
objectHandlersObjectHandler[][]IotaObjectProcessor.objectHandlers
ownerTypeMoveOwnerTypeundefinedIotaObjectProcessor.ownerType
templateIdnumber | undefinedundefinedIotaObjectProcessor.templateId

Methods

getChainId()

getChainId(): string;

Returns

string

Inherited from

IotaBaseObjectOrAddressProcessorInternal.getChainId

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

IotaBaseObjectOrAddressProcessorInternal.onCheckpointInterval

onInterval()

onInterval(
   handler: (objects: object[], ctx: IotaAddressContext) => PromiseOrVoid, 
   timeInterval: 
  | HandleInterval
  | undefined, 
   checkpointInterval: 
  | HandleInterval
  | undefined, 
   type: string | undefined, 
   fetchConfig: 
  | Partial<MoveAccountFetchConfig>
  | undefined, 
   handlerName?: string
): this;

Parameters

ParameterType
handler(objects: object[], ctx: IotaAddressContext) => PromiseOrVoid
timeInterval| HandleInterval | undefined
checkpointInterval| HandleInterval | undefined
typestring | undefined
fetchConfig| Partial<MoveAccountFetchConfig> | undefined
handlerNamestring

Returns

this

Inherited from

IotaBaseObjectOrAddressProcessorInternal.onInterval

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

IotaBaseObjectOrAddressProcessorInternal.onTimeInterval

onTransactionBlock()

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

Parameters

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

Returns

IotaAddressProcessor


bind()

static bind(options: IotaBindOptions): IotaAddressProcessor;

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

IotaAddressProcessor

On this page