SuiBaseProcessor

Class in @sentio/sdk/sui

Defined in @sentio/sdk/sui

Extended by

Constructors

Constructor

new SuiBaseProcessor(name: string, options: SuiBindOptions): SuiBaseProcessor;

Parameters

ParameterType
namestring
optionsSuiBindOptions

Returns

SuiBaseProcessor

Properties

PropertyModifierTypeDefault value
callHandlerspublicCallHandler<Data_SuiCall>[][]
coderpublicMoveCoderundefined
configpublicIndexConfigureundefined
eventHandlerspublicEventHandler<Data_SuiEvent>[][]
moduleNamereadonlystringundefined
objectChangeHandlerspublicObjectChangeHandler<Data_SuiObjectChange>[][]

Methods

getChainId()

getChainId(): string;

Returns

string


onEvent()

onEvent(handler: (event: Event, ctx: SuiContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, Event>): this;

Parameters

ParameterType
handler(event: Event, ctx: SuiContext) => void
handlerOptions?HandlerOptions<MoveFetchConfig, Event>

Returns

this


onTransactionBlock()

onTransactionBlock(
   handler: (transaction: ExecutedTransaction, ctx: SuiContext) => PromiseOrVoid, 
   filter?: TransactionFilter, 
   handlerOptions?: HandlerOptions<MoveFetchConfig, ExecutedTransaction>
): this;

Parameters

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

Returns

this

On this page