SuiAddressProcessor

Class in @sentio/sdk/sui

Defined in @sentio/sdk/sui

Extends

Properties

PropertyTypeDefault valueInherited from
callHandlersCallHandler<Data_SuiCall>[][]-
configIndexConfigureundefinedSuiObjectProcessor.config
objectChangeHandlersObjectChangeHandler<Data_SuiObjectChange>[][]SuiObjectProcessor.objectChangeHandlers
objectHandlersObjectHandler[][]SuiObjectProcessor.objectHandlers
ownerTypeMoveOwnerTypeundefinedSuiObjectProcessor.ownerType
templateIdnumber | undefinedundefinedSuiObjectProcessor.templateId

Methods

getChainId()

getChainId(): string;

Returns

string

Inherited from

SuiBaseObjectOrAddressProcessorInternal.getChainId

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

SuiBaseObjectOrAddressProcessorInternal.onCheckpointInterval

onInterval()

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

Parameters

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

Returns

this

Inherited from

SuiBaseObjectOrAddressProcessorInternal.onInterval

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

SuiBaseObjectOrAddressProcessorInternal.onTimeInterval

onTransactionBlock()

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

Parameters

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

Returns

SuiAddressProcessor


bind()

static bind(options: SuiBindOptions): SuiAddressProcessor;

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
optionsSuiBindOptions

Returns

SuiAddressProcessor

On this page