Class AptosTransactionProcessor<T, CT>
Type Parameters
- T extends GeneralTransactionResponse
- CT extends AptosTransactionContext<T>
- AptosTransactionProcessor
Constructors
constructor
- new AptosTransactionProcessor<
T extends GeneralTransactionResponse,
CT extends AptosTransactionContext<T>,
>(
moduleName: string,
options: AptosBindOptions,
): AptosTransactionProcessor<T, CT> Type Parameters
- T extends GeneralTransactionResponse
- CT extends AptosTransactionContext<T>
Properties
config
config: IndexConfigure
Readonly
moduleName
moduleName: string
transactionIntervalHandlers
Methods
getChainId
- getChainId(): string
Returns string
Protected
onEntryFunctionCall
onTimeInterval
- onTimeInterval(
handler: (transaction: T, ctx: CT) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
fetchConfig?: Partial<MoveFetchConfig>,
): this Parameters
- handler: (transaction: T, ctx: CT) => PromiseOrVoid
- timeIntervalInMinutes: number = 60
- backfillTimeIntervalInMinutes: number = 240
Optional
fetchConfig: Partial<MoveFetchConfig>
Returns this
onVersionInterval
- onVersionInterval(
handler: (transaction: T, context: CT) => PromiseOrVoid,
versionInterval?: number,
backfillVersionInterval?: number,
fetchConfig?: Partial<MoveFetchConfig>,
): this Parameters
- handler: (transaction: T, context: CT) => PromiseOrVoid
- versionInterval: number = 100000
- backfillVersionInterval: number = 400000
Optional
fetchConfig: Partial<MoveFetchConfig>
Returns this