IotaBaseProcessor
Class in @sentio/sdk/iota
Defined in @sentio/sdk/iota
Extended by
IotaGlobalProcessorIotaModulesProcessorbit_vectorfixed_point32string$type_nameuq32_32uq64_64accountauth_contextauthenticator_functionauthenticator_statebcscoincoin_managerdeny_listderived_objectdisplaydynamic_object_fieldgroth16group_opsintentiotakioskkiosk_extensionmodule_metadatapackage$package_metadatapayptbptb_call_argptb_commandtimelocktokentransaction_deny_rulestransfer_policyurlvec_mapvec_setgenesisiota_systemiota_system_state_innerstaking_pooltimelocked_stakingvalidatorvalidator_set
Constructors
Constructor
new IotaBaseProcessor(name: string, options: IotaBindOptions): IotaBaseProcessor;Parameters
| Parameter | Type |
|---|---|
name | string |
options | IotaBindOptions |
Returns
IotaBaseProcessor
Properties
| Property | Modifier | Type | Default value |
|---|---|---|---|
callHandlers | public | CallHandler<Data_SuiCall>[] | [] |
coder | public | MoveCoder | undefined |
config | public | IndexConfigure | undefined |
eventHandlers | public | EventHandler<Data_SuiEvent>[] | [] |
moduleName | readonly | string | undefined |
objectChangeHandlers | public | ObjectChangeHandler<Data_SuiObjectChange>[] | [] |
Methods
getChainId()
getChainId(): string;Returns
string
onEvent()
onEvent(handler: (event: IotaEvent, ctx: IotaContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, IotaEvent>): this;Parameters
| Parameter | Type |
|---|---|
handler | (event: IotaEvent, ctx: IotaContext) => void |
handlerOptions? | HandlerOptions<MoveFetchConfig, IotaEvent> |
Returns
this
onTransactionBlock()
onTransactionBlock(
handler: (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid,
filter?: TransactionFilter,
handlerOptions?: HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse>
): this;Parameters
| Parameter | Type |
|---|---|
handler | (transaction: IotaTransactionBlockResponse, ctx: IotaContext) => PromiseOrVoid |
filter? | TransactionFilter |
handlerOptions? | HandlerOptions<MoveFetchConfig, IotaTransactionBlockResponse> |
Returns
this