16 lines
329 B
TypeScript
Raw Normal View History

2021-08-10 01:30:13 -03:00
import mempoolJS from "./../../../../src/index";
const init = async () => {
try {
const {
bitcoin: { difficulty },
} = mempoolJS();
const difficultyAdjustment = await difficulty.getDifficultyAdjustment();
console.log(difficultyAdjustment);
} catch (error) {
console.log(error);
}
};
init();