* 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
385 B
TypeScript
18 lines
385 B
TypeScript
import mempoolJS from "@mempool/mempool.js";
|
|
|
|
const init = async () => {
|
|
const {
|
|
bisq: { transactions },
|
|
} = mempoolJS();
|
|
|
|
const txid =
|
|
'4b5417ec5ab6112bedf539c3b4f5a806ed539542d8b717e1c4470aa3180edce5';
|
|
|
|
const tx = await transactions.getTx({ txid });
|
|
console.log(tx);
|
|
|
|
const txs = await transactions.getTxs({ index: 0, length: 1 });
|
|
console.log(txs);
|
|
};
|
|
init();
|