Skip to main content

Synchronizer

The Synchronizer helps you synchronize on-chain data to the local environment.

run

Run synchronization.

import mystiko from '@mystikonetwork/browser';

const status = await mystiko.synchronizer?.run({ walletPassword: 'P@assword', timeoutMs: 500, noPacker: false, skipAccountScan: true });

schedule

Run synchronization schedule.

import mystiko from '@mystikonetwork/browser';

await mystiko.synchronizer?.schedule({ walletPassword: 'P@assword', noPacker: false, skipAccountScan: true });

cancelSchedule

Cancel synchronization schedule.

import mystiko from '@mystikonetwork/browser';

await mystiko.synchronizer?.cancelSchedule();