SuiAddressProcessorTemplate

Class in @sentio/sdk/sui

Defined in @sentio/sdk/sui

Extends

Constructors

Constructor

new SuiAddressProcessorTemplate(): SuiAddressProcessorTemplate;

Returns

SuiAddressProcessorTemplate

Inherited from

SuiObjectOrAddressProcessorTemplate<
  (objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid,
  SuiBindOptions,
  SuiAddressProcessor
>.constructor

Properties

PropertyTypeDefault valueInherited from
idnumberundefinedSuiObjectProcessorTemplate.id
instancesSet<string>undefinedSuiObjectProcessorTemplate.instances
objectHandlersObjectHandler<(objects: SuiMoveObjectInput[], ctx: SuiAddressContext) => PromiseOrVoid>[][]SuiObjectOrAddressProcessorTemplate.objectHandlers

Methods

bind()

bind(options: SuiBindOptions, ctx: SuiContext): void;

Parameters

ParameterType
optionsSuiBindOptions
ctxSuiContext

Returns

void

Inherited from

SuiObjectOrAddressProcessorTemplate.bind

createProcessor()

createProcessor(options: SuiBindOptions): SuiAddressProcessor;

Parameters

ParameterType
optionsSuiBindOptions

Returns

SuiAddressProcessor

Overrides

SuiObjectOrAddressProcessorTemplate.createProcessor

onCheckpointInterval()

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

Parameters

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

Returns

this

Inherited from

SuiObjectOrAddressProcessorTemplate.onCheckpointInterval

onTimeInterval()

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

Parameters

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

Returns

this

Inherited from

SuiObjectOrAddressProcessorTemplate.onTimeInterval

onTransactionBlock()

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

Parameters

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

Returns

this


startInstance()

startInstance(options: SuiBindOptions, ctx: SuiContext): void;

Parameters

ParameterType
optionsSuiBindOptions
ctxSuiContext

Returns

void

Inherited from

SuiObjectOrAddressProcessorTemplate.startInstance

unbind()

unbind(options: SuiBindOptions, ctx: SuiContext): void;

Parameters

ParameterType
optionsSuiBindOptions
ctxSuiContext

Returns

void

Inherited from

SuiObjectOrAddressProcessorTemplate.unbind

On this page