Class AptosGlobalProcessor
Methods
onTimeInterval
- onTimeInterval(
handler: (
transaction: GeneralTransactionResponse,
ctx: AptosTransactionContext<GeneralTransactionResponse>,
) => PromiseOrVoid,
timeIntervalInMinutes?: number,
backfillTimeIntervalInMinutes?: number,
fetchConfig?: Partial<MoveFetchConfig>,
): this Parameters
- handler: (
transaction: GeneralTransactionResponse,
ctx: AptosTransactionContext<GeneralTransactionResponse>,
) => PromiseOrVoid - timeIntervalInMinutes: number = 60
- backfillTimeIntervalInMinutes: number = 240
Optional
fetchConfig: Partial<MoveFetchConfig>
Returns this
onVersionInterval
- onVersionInterval(
handler: (
transaction: GeneralTransactionResponse,
ctx: AptosTransactionContext<GeneralTransactionResponse>,
) => PromiseOrVoid,
versionInterval?: number,
backfillVersionInterval?: number,
fetchConfig?: Partial<MoveFetchConfig>,
): this Parameters
- handler: (
transaction: GeneralTransactionResponse,
ctx: AptosTransactionContext<GeneralTransactionResponse>,
) => PromiseOrVoid - versionInterval: number = 100000
- backfillVersionInterval: number = 400000
Optional
fetchConfig: Partial<MoveFetchConfig>
Returns this