* Add yarn-error.log to gitignore. * Add ts-node to devDependencies. Add script to only build tsc. Add websocket to keywords. * Update yarn.lock libs. * FIX websocket endpoint hostname. FIX corrent import for all examples. FIX websocket instrucions on readme.
18 lines
402 B
TypeScript
18 lines
402 B
TypeScript
import mempoolJS from "@mempool/mempool.js";
|
|
|
|
const init = async () => {
|
|
const {
|
|
liquid: { mempool },
|
|
} = mempoolJS();
|
|
|
|
const getMempool = await mempool.getMempool();
|
|
console.log(getMempool);
|
|
|
|
const getMempoolRecent = await mempool.getMempoolRecent();
|
|
console.log(getMempoolRecent);
|
|
|
|
const getMempoolTxids = await mempool.getMempoolTxids();
|
|
console.log(getMempoolTxids);
|
|
};
|
|
init();
|