Skip to main content

SyncLag

@midnight-ntwrk/wallet-api v5.0.0Readme | API


@midnight-ntwrk/wallet-api v5.0.0 / SyncLag

Type alias: SyncLag

type SyncLag: {
applyGap: bigint;
sourceGap: bigint;
};

Lag of the wallet syncing process.

Type declaration

applyGap

readonly applyGap: bigint;

Blocks your wallet still needs to process, if this is greater than 0, it means that your wallet is not fully synced Formula: backend tip - last transaction index processed by your wallet

sourceGap

readonly sourceGap: bigint;

Blocks the backend still needs to process, if this is greater than 0, it means that the backend is not fully synced Formula: chain tip - backend tip