Add bisqJS and liquidJS npm modules.
This commit is contained in:
26
examples/html/mempool-js/bitcoin/fees.html
Normal file
26
examples/html/mempool-js/bitcoin/fees.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Page Title</title>
|
||||
<script src="./../../../../dist/mempool.js"></script>
|
||||
<script>
|
||||
const init = async () => {
|
||||
try {
|
||||
const {
|
||||
bitcoin: { fees },
|
||||
} = mempoolJS();
|
||||
|
||||
const feesRecommended = await fees.getFeesRecommended();
|
||||
console.log(feesRecommended);
|
||||
|
||||
const feesMempoolBlocks = await fees.getFeesMempoolBlocks();
|
||||
console.log(feesMempoolBlocks);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
};
|
||||
init();
|
||||
</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user