Other Routines
Statistic routines etc
Getting the Full State Sync Statistic
getStatFullSync(): SyncStat | undefinedReturns
Example
const stat = zkClient.getStatFullSync();
if (stat) {
console.log(`Full state sync: ${stat.totalTime / 1000} sec`);
console.log(` avg speed: ${stat.timePerTx.toFixed(1)} ms/tx`);
console.log(` total tx: ${stat.txCount}`);
console.log(` cold-storage: ${stat.cdnTxCnt} txs`);
console.log(` memo items: ${stat.decryptedLeafs}`);
}Getting Average Sync Time
Returns
Example
Last updated
Was this helpful?