Add difficulty adjustment examples.

This commit is contained in:
Miguel Medeiros committed 2021-07-23 17:58:54 -03:00
1 parent caf8d956b5
commit aed4bc5fc9
3 files changed
+48

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import mempoolJS from "@mempool/mempool.js";
const init = async () => {
const {
bitcoin: { difficulty },
} = mempoolJS();
const difficultyAdjustment = await difficulty.getDifficultyAdjustment();
console.log(difficultyAdjustment);
};
init();