mempool/examples/html/mempool.html
Miguel Medeiros 2dd50add4a - Add mempool.js link to all examples.
- Ignore files in dist folder, adding .gitkeep instead.
- Update readme text with CND instructions.
- Update readme badges.
- Update readme typo.
- Update all the html examples with new CDN link.
2021-04-10 12:30:24 -03:00

27 lines
621 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script
type="text/javascript"
src="https://mempool.space/mempool.js"
></script>
<script>
const init = async () => {
const { 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();
</script>
</head>
<body></body>
</html>